Package com.db4o.internal.query.result
Class AbstractQueryResult
- java.lang.Object
-
- com.db4o.internal.query.result.AbstractQueryResult
-
- All Implemented Interfaces:
Iterable4
,QueryResult
- Direct Known Subclasses:
AbstractLateQueryResult
,HybridQueryResult
,IdListQueryResult
,IdTreeQueryResult
,LazyClientQueryResult
public abstract class AbstractQueryResult extends java.lang.Object implements QueryResult
-
-
Field Summary
Fields Modifier and Type Field Description protected Transaction
_transaction
-
Constructor Summary
Constructors Constructor Description AbstractQueryResult(Transaction transaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
activate(java.lang.Object obj)
java.lang.Object
activatedObject(int id)
Config4Impl
config()
java.lang.Object
get(int index)
int
getId(int i)
int
indexOf(int id)
Iterator4
iterator()
protected int
knownSize()
void
loadFromClassIndex(ClassMetadata c)
void
loadFromClassIndexes(ClassMetadataIterator i)
void
loadFromIdReader(Iterator4 ids)
void
loadFromQuery(QQuery q)
java.lang.Object
lock()
ExtObjectContainer
objectContainer()
int
size()
void
skip(int count)
protected Iterator4
skip(Iterator4 source)
void
sort(QueryComparator cmp)
void
sortIds(IntComparator cmp)
ObjectContainerBase
stream()
AbstractQueryResult
supportElementAccess()
AbstractQueryResult
supportSize()
AbstractQueryResult
supportSort()
AbstractQueryResult
toIdList()
protected AbstractQueryResult
toIdTree()
Transaction
transaction()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.db4o.internal.query.result.QueryResult
iterateIDs
-
-
-
-
Field Detail
-
_transaction
protected final Transaction _transaction
-
-
Constructor Detail
-
AbstractQueryResult
public AbstractQueryResult(Transaction transaction)
-
-
Method Detail
-
activate
public final java.lang.Object activate(java.lang.Object obj)
-
activatedObject
public final java.lang.Object activatedObject(int id)
-
lock
public java.lang.Object lock()
- Specified by:
lock
in interfaceQueryResult
-
stream
public ObjectContainerBase stream()
-
transaction
public Transaction transaction()
-
objectContainer
public ExtObjectContainer objectContainer()
- Specified by:
objectContainer
in interfaceQueryResult
-
supportSize
public AbstractQueryResult supportSize()
-
supportSort
public AbstractQueryResult supportSort()
-
supportElementAccess
public AbstractQueryResult supportElementAccess()
-
knownSize
protected int knownSize()
-
toIdList
public AbstractQueryResult toIdList()
-
toIdTree
protected AbstractQueryResult toIdTree()
-
config
public Config4Impl config()
-
size
public int size()
- Specified by:
size
in interfaceQueryResult
-
skip
public void skip(int count)
- Specified by:
skip
in interfaceQueryResult
-
sort
public void sort(QueryComparator cmp)
- Specified by:
sort
in interfaceQueryResult
-
sortIds
public void sortIds(IntComparator cmp)
- Specified by:
sortIds
in interfaceQueryResult
-
get
public java.lang.Object get(int index)
- Specified by:
get
in interfaceQueryResult
-
getId
public int getId(int i)
-
indexOf
public int indexOf(int id)
- Specified by:
indexOf
in interfaceQueryResult
-
loadFromClassIndex
public void loadFromClassIndex(ClassMetadata c)
-
loadFromClassIndexes
public void loadFromClassIndexes(ClassMetadataIterator i)
-
loadFromIdReader
public void loadFromIdReader(Iterator4 ids)
-
loadFromQuery
public void loadFromQuery(QQuery q)
-
-