@groovy.transform.CompileStatic abstract class AbstractDetachedCriteriaServiceImplementor extends AbstractReadOperationImplementer
An abstract implementer that builds a detached criteria query from the method arguments
Modifiers | Name | Description |
---|---|---|
static org.codehaus.groovy.ast.ClassNode |
DETACHED_CRITERIA |
Constructor and description |
---|
AbstractDetachedCriteriaServiceImplementor() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
doImplement(org.codehaus.groovy.ast.ClassNode domainClassNode, org.codehaus.groovy.ast.MethodNode abstractMethodNode, org.codehaus.groovy.ast.MethodNode newMethodNode, org.codehaus.groovy.ast.ClassNode targetClassNode) |
|
protected org.codehaus.groovy.ast.ClassNode |
getDetachedCriteriaType(org.codehaus.groovy.ast.ClassNode domainClassNode) |
|
abstract void |
implementById(org.codehaus.groovy.ast.ClassNode domainClassNode, org.codehaus.groovy.ast.MethodNode abstractMethodNode, org.codehaus.groovy.ast.MethodNode newMethodNode, org.codehaus.groovy.ast.ClassNode targetClassNode, org.codehaus.groovy.ast.stmt.BlockStatement body, org.codehaus.groovy.ast.expr.Expression byIdLookup) Provide an implementation in the case querying for a single instance by id |
|
abstract void |
implementWithQuery(org.codehaus.groovy.ast.ClassNode domainClassNode, org.codehaus.groovy.ast.MethodNode abstractMethodNode, org.codehaus.groovy.ast.MethodNode newMethodNode, org.codehaus.groovy.ast.ClassNode targetClassNode, org.codehaus.groovy.ast.stmt.BlockStatement body, org.codehaus.groovy.ast.expr.VariableExpression detachedCriteriaVar, org.codehaus.groovy.ast.expr.Expression queryArgs) Provide an implementation in the case of a query |
|
protected boolean |
lookupById() Whether lookup by id is allowed by this implementation |
Provide an implementation in the case querying for a single instance by id
domainClassNode
- The domain classabstractMethodNode
- the abstract methodnewMethodNode
- The newly added methodtargetClassNode
- The target classbody
- The bodybyIdLookup
- The expression that looks up the object by idProvide an implementation in the case of a query
domainClassNode
- The domain classabstractMethodNode
- the abstract methodnewMethodNode
- The newly added methodtargetClassNode
- The target classbody
- The bodydetachedCriteriaVar
- The detached criteria queryqueryArgs
- Any arguments to the queryWhether lookup by id is allowed by this implementation