@groovy.transform.CompileStatic abstract class AbstractServiceImplementer extends java.lang.Object
Abstract implementation of the ServiceImplementer interface
Type Params | Return Type | Name and description |
---|---|---|
|
protected org.codehaus.groovy.ast.expr.Expression |
buildInstanceApiLookup(org.codehaus.groovy.ast.ClassNode domainClass, org.codehaus.groovy.ast.expr.Expression connectionId) |
|
protected org.codehaus.groovy.ast.expr.Expression |
buildStaticApiLookup(org.codehaus.groovy.ast.ClassNode domainClass, org.codehaus.groovy.ast.expr.Expression connectionId) |
|
protected void |
copyClassAnnotations(org.codehaus.groovy.ast.MethodNode abstractMethod, org.codehaus.groovy.ast.MethodNode impl) Copies annotation from the abstract method to the implementation method |
|
protected org.codehaus.groovy.ast.expr.Expression |
datastore() @return The datastore expression |
|
boolean |
doesImplement(org.codehaus.groovy.ast.ClassNode domainClass, org.codehaus.groovy.ast.MethodNode methodNode) |
|
protected org.codehaus.groovy.ast.expr.Expression |
findConnectionId(org.codehaus.groovy.ast.MethodNode methodNode) |
|
protected org.codehaus.groovy.ast.expr.Expression |
findInstanceApiForConnectionId(org.codehaus.groovy.ast.ClassNode domainClass, org.codehaus.groovy.ast.MethodNode methodNode) |
|
protected org.codehaus.groovy.ast.expr.Expression |
findStaticApiForConnectionId(org.codehaus.groovy.ast.ClassNode domainClass, org.codehaus.groovy.ast.MethodNode methodNode) |
|
int |
getOrder() |
|
protected boolean |
isCompatibleReturnType(org.codehaus.groovy.ast.ClassNode domainClass, org.codehaus.groovy.ast.MethodNode methodNode, org.codehaus.groovy.ast.ClassNode returnType, java.lang.String prefix) Return true if the provided return type is compatible with this implementor. |
|
protected boolean |
isValidParameter(org.codehaus.groovy.ast.ClassNode domainClassNode, org.codehaus.groovy.ast.Parameter parameter, java.lang.String parameterName) Check whether the given parameter is a valid property of the domain class |
|
protected org.codehaus.groovy.ast.expr.Expression |
multiTenantDatastore() @return The datastore expression |
|
java.lang.String |
resolvePrefix(org.codehaus.groovy.ast.MethodNode mn) |
|
protected org.codehaus.groovy.ast.expr.Expression |
tenantService() @return The tenant service |
|
protected org.codehaus.groovy.ast.expr.Expression |
transactionService() @return The transaction service |
|
protected org.codehaus.groovy.ast.expr.Expression |
transactionalDatastore() @return The datastore expression |
Methods inherited from class | Name |
---|---|
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() |
Copies annotation from the abstract method to the implementation method
abstractMethod
- the abstract methodimpl
- the implementation method
Return true if the provided return type is compatible with this implementor.
domainClass
- The domain class this method applies tomethodNode
- The methodreturnType
- The return typeCheck whether the given parameter is a valid property of the domain class
domainClassNode
- The domain classparameter
- The parameterparameterName
- The parameter name