org.neodatis.odb.impl.core.query.values
Class ValuesCriteriaQueryExecutor

java.lang.Object
  extended by org.neodatis.odb.core.query.execution.GenericQueryExecutor
      extended by org.neodatis.odb.impl.core.query.values.ValuesCriteriaQueryExecutor
All Implemented Interfaces:
IMultiClassQueryExecutor, IQueryExecutor

public class ValuesCriteriaQueryExecutor
extends GenericQueryExecutor


Field Summary
 
Fields inherited from class org.neodatis.odb.core.query.execution.GenericQueryExecutor
callback, classInfo, currentNnoi, currentOid, executeStartAndEndOfQueryAction, LOG_ID, nextOID, objectReader, query, session, storageEngine
 
Constructor Summary
ValuesCriteriaQueryExecutor(IQuery query, IStorageEngine engine)
           
 
Method Summary
 java.lang.Comparable computeIndexKey(ClassInfo ci, ClassInfoIndex index)
           
 java.lang.Object getCurrentObjectMetaRepresentation()
          This can be a NonNAtiveObjectInf or AttributeValuesMap
 IQueryExecutionPlan getExecutionPlan()
           
 java.lang.String getFullClassName(IQuery query)
           
 boolean matchObjectWithOid(OID oid, boolean returnObject, boolean inMemory)
          Check if the object with oid matches the query, returns true This method must compute the next object oid and the orderBy key if it exists!
 void prepareQuery()
           
 
Methods inherited from class org.neodatis.odb.core.query.execution.GenericQueryExecutor
buildOrderByKey, buildOrderByKey, buildOrderByKey, execute, executeStartAndEndOfQueryAction, getQuery, getStorageEngine, setClassInfo, setExecuteStartAndEndOfQueryAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValuesCriteriaQueryExecutor

public ValuesCriteriaQueryExecutor(IQuery query,
                                   IStorageEngine engine)
Method Detail

getExecutionPlan

public IQueryExecutionPlan getExecutionPlan()
Specified by:
getExecutionPlan in class GenericQueryExecutor

prepareQuery

public void prepareQuery()
Specified by:
prepareQuery in class GenericQueryExecutor

matchObjectWithOid

public boolean matchObjectWithOid(OID oid,
                                  boolean returnObject,
                                  boolean inMemory)
Description copied from class: GenericQueryExecutor
Check if the object with oid matches the query, returns true This method must compute the next object oid and the orderBy key if it exists!

Specified by:
matchObjectWithOid in class GenericQueryExecutor
Parameters:
oid - The object position
returnObject - To indicate if object must loaded (when the query indicator 'in memory' is false, we do not need to load object, only ids)
inMemory - To indicate if object must be actually loaded to memory

computeIndexKey

public java.lang.Comparable computeIndexKey(ClassInfo ci,
                                            ClassInfoIndex index)
Specified by:
computeIndexKey in class GenericQueryExecutor

getCurrentObjectMetaRepresentation

public java.lang.Object getCurrentObjectMetaRepresentation()
Description copied from class: GenericQueryExecutor
This can be a NonNAtiveObjectInf or AttributeValuesMap

Specified by:
getCurrentObjectMetaRepresentation in class GenericQueryExecutor
Returns:

getFullClassName

public java.lang.String getFullClassName(IQuery query)
Specified by:
getFullClassName in interface IQueryExecutor
Specified by:
getFullClassName in class GenericQueryExecutor