org.neodatis.odb.impl.core.query.criteria
Class CollectionQueryResultAction
- java.lang.Object
-
- org.neodatis.odb.impl.core.query.criteria.CollectionQueryResultAction
-
- All Implemented Interfaces:
- IMatchingObjectAction
public class CollectionQueryResultAction extends java.lang.Object implements IMatchingObjectAction
Class that manage normal query. Query that return a list of objects. For each object That matches the query criteria, the objectMatch method is called and it keeps the objects in the 'objects' instance.
-
-
Constructor Summary
Constructors Constructor and Description CollectionQueryResultAction(IQuery query, boolean inMemory, IStorageEngine storageEngine, boolean returnObjects, IInstanceBuilder instanceBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidend()Called at the end of the query execution - used to clean or finish some taskjava.lang.ObjectgetCurrentInstance(NonNativeObjectInfo nnoi)Objects<java.lang.Object>getObjects()Returns the resulting objectsvoidobjectMatch(OID oid, java.lang.Object object, OdbComparable orderByKey)Called (by the GenericQueryExecutor) when an object matches the queryvoidobjectMatch(OID oid, OdbComparable orderByKey)Called (by the GenericQueryExecutor) when an object matches with lazy loading, only stores the OIDvoidstart()Called at the beginning of the query execution - used to prepare result object
-
-
-
Constructor Detail
-
CollectionQueryResultAction
public CollectionQueryResultAction(IQuery query, boolean inMemory, IStorageEngine storageEngine, boolean returnObjects, IInstanceBuilder instanceBuilder)
-
-
Method Detail
-
objectMatch
public void objectMatch(OID oid, OdbComparable orderByKey)
Description copied from interface:IMatchingObjectActionCalled (by the GenericQueryExecutor) when an object matches with lazy loading, only stores the OID- Specified by:
objectMatchin interfaceIMatchingObjectAction
-
objectMatch
public void objectMatch(OID oid, java.lang.Object object, OdbComparable orderByKey)
Description copied from interface:IMatchingObjectActionCalled (by the GenericQueryExecutor) when an object matches the query- Specified by:
objectMatchin interfaceIMatchingObjectAction
-
start
public void start()
Description copied from interface:IMatchingObjectActionCalled at the beginning of the query execution - used to prepare result object- Specified by:
startin interfaceIMatchingObjectAction
-
end
public void end()
Description copied from interface:IMatchingObjectActionCalled at the end of the query execution - used to clean or finish some task- Specified by:
endin interfaceIMatchingObjectAction
-
getCurrentInstance
public java.lang.Object getCurrentInstance(NonNativeObjectInfo nnoi)
-
getObjects
public Objects<java.lang.Object> getObjects()
Description copied from interface:IMatchingObjectActionReturns the resulting objects- Specified by:
getObjectsin interfaceIMatchingObjectAction
-
-
DataMelt 3.0 © DataMelt by jWork.ORG