org.neodatis.odb.core.query.execution
Class MultiClassGenericQueryExecutor

java.lang.Object
  extended by org.neodatis.odb.core.query.execution.MultiClassGenericQueryExecutor
All Implemented Interfaces:
IQueryExecutor

public class MultiClassGenericQueryExecutor
extends java.lang.Object
implements IQueryExecutor

A class to execute a query on more than one class and then merges the result. It is used when polymophic is set to true because in this case, we must execute query on the main class and all its persistent subclasses


Constructor Summary
MultiClassGenericQueryExecutor(IMultiClassQueryExecutor executor)
           
 
Method Summary
<T> Objects<T>
execute(boolean inMemory, int startIndex, int endIndex, boolean returnObjects, IMatchingObjectAction queryResultAction)
          The main query execution method
 boolean executeStartAndEndOfQueryAction()
           
 java.lang.String getFullClassName(IQuery query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiClassGenericQueryExecutor

public MultiClassGenericQueryExecutor(IMultiClassQueryExecutor executor)
Method Detail

execute

public <T> Objects<T> execute(boolean inMemory,
                              int startIndex,
                              int endIndex,
                              boolean returnObjects,
                              IMatchingObjectAction queryResultAction)
The main query execution method

Specified by:
execute in interface IQueryExecutor
Parameters:
query -
inMemory -
startIndex -
endIndex -
returnObjects -
Returns:
Throws:
java.lang.Exception

executeStartAndEndOfQueryAction

public boolean executeStartAndEndOfQueryAction()

getFullClassName

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