Class QueryExecutorImpl
java.lang.Object
ch.tocco.nice2.scripting.impl.groovy.variable.QueryExecutorImpl
- All Implemented Interfaces:
QueryExecutor
-
Constructor Summary
ConstructorDescriptionQueryExecutorImpl
(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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.scripting.api.groovy.variable.QueryExecutor
unwrap
-
Constructor Details
-
QueryExecutorImpl
-
-
Method Details
-
findEntity
Description copied from interface:QueryExecutor
helper method to find an entity by a key- Specified by:
findEntity
in interfaceQueryExecutor
-
findAll
Description copied from interface:QueryExecutor
helper method to get all entities of a specific class- Specified by:
findAll
in interfaceQueryExecutor
-
findLookupEntity
The actual entity class needs to be used, so that static compilation is possible. If the method would returnEntity
the compiler would not know the properties of the returned entity.- Specified by:
findLookupEntity
in interfaceQueryExecutor
-
find
Description copied from interface:QueryExecutor
helper method to find entities by the provided TQL condition.- Specified by:
find
in interfaceQueryExecutor
-
find
Description copied from interface:QueryExecutor
helper method to find entities by the provided TQL condition.- Specified by:
find
in interfaceQueryExecutor
-
count
Description copied from interface:QueryExecutor
helper method to count results found by the provided TQL condition.- Specified by:
count
in interfaceQueryExecutor
-