@groovy.transform.CompileStatic abstract class AbstractServiceImplementer extends java.lang.Object implements Ordered, PrefixedServiceImplementer
Abstract implementation of the ServiceImplementer interface
Constructor and description |
---|
AbstractServiceImplementer() |
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()
|
|
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 abstract 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()
|
|
java.lang.String |
resolvePrefix(org.codehaus.groovy.ast.MethodNode mn) |
|
protected org.codehaus.groovy.ast.expr.Expression |
tenantService()
|
|
protected org.codehaus.groovy.ast.expr.Expression |
transactionService()
|
|
protected org.codehaus.groovy.ast.expr.Expression |
transactionalDatastore()
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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