Class QueryExecutorImpl
java.lang.Object
ch.tocco.nice2.scripting.impl.groovy.variable.QueryExecutorImpl
- All Implemented Interfaces:
QueryExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionQueryExecutorImpl(PersistenceService persistService, QueryCompiler queryCompiler) -
Method Summary
Modifier and TypeMethodDescription<E extends Entity>
longhelper method to count results found by the provided TQL condition.helper method to find entities by the provided TQL condition.helper method to find entities by the provided TQL condition.helper method to get all entities of a specific class<E extends Entity>
EfindEntity(Class<E> entityClass, PrimaryKey key) helper method to find an entity by a key<E extends Entity>
EfindLookupEntity(Class<E> entityClass, String uniqueId) The actual entity class needs to be used, so that static compilation is possible.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface QueryExecutor
unwrap
-
Constructor Details
-
QueryExecutorImpl
-
-
Method Details
-
findEntity
Description copied from interface:QueryExecutorhelper method to find an entity by a key- Specified by:
findEntityin interfaceQueryExecutor
-
findAll
Description copied from interface:QueryExecutorhelper method to get all entities of a specific class- Specified by:
findAllin interfaceQueryExecutor
-
findLookupEntity
The actual entity class needs to be used, so that static compilation is possible. If the method would returnEntitythe compiler would not know the properties of the returned entity.- Specified by:
findLookupEntityin interfaceQueryExecutor
-
find
Description copied from interface:QueryExecutorhelper method to find entities by the provided TQL condition.- Specified by:
findin interfaceQueryExecutor
-
find
Description copied from interface:QueryExecutorhelper method to find entities by the provided TQL condition.- Specified by:
findin interfaceQueryExecutor
-
count
Description copied from interface:QueryExecutorhelper method to count results found by the provided TQL condition.- Specified by:
countin interfaceQueryExecutor
-