interface QueryStrategy
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract groovy.lang.Closure<?> |
buildProjection(java.lang.String path, java.lang.String criterionMethod, java.util.List args)Build a closure that can be run inside a Criteria query that dynamically represents a proection into joined classes, e.g. for an AclEntry query: |
|
abstract java.lang.Object |
runCriteria(java.lang.Class<?> clazz, java.util.List<groovy.lang.Closure<?>> criterias, java.util.Map paginateParams)Run a Criteria auery for the given class, method, and subcriterias. |
Build a closure that can be run inside a Criteria query that dynamically represents a proection into joined classes, e.g. for an AclEntry query: aclObjectIdentity { aclClass { eq 'id', classId } } you would call buildProjection 'aclObjectIdentity.aclClass', 'eq', 'id', classId)
path - the projection pathcriterionMethod - the inner method to callargs - the method argsRun a Criteria auery for the given class, method, and subcriterias.
clazz - the domain classcriterias - zero or more closures to invoke in the context of the criteria's builderpaginateParams - pagination params