An abstract implementer that builds a detached criteria query from the method arguments
Modifiers | Name | Description |
---|---|---|
static org.codehaus.groovy.ast.ClassNode |
DETACHED_CRITERIA |
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) |
|
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 |
|
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 |
Methods inherited from class | Name |
---|---|
class AbstractReadOperationImplementer |
applyDefaultTransactionHandling, doImplement, doesEnhance, enhance, findArgsExpression, implement, resolveDomainClassFromSignature |
class AbstractServiceImplementer |
copyClassAnnotations, doesImplement, getHandledPrefixes, isCompatibleReturnType, isValidParameter |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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