@groovy.transform.CompileStatic abstract class AbstractDatastoreMethodDecoratingTransformation extends AbstractMethodDecoratingTransformation
An abstract implementation for transformations that decorate a method invocation such that the method invocation is wrapped in the execution of a closure that delegates to the original logic. Examples of such transformations are Transactional and CurrentTenant
| Modifiers | Name | Description |
|---|---|---|
static java.lang.String |
FIELD_TARGET_DATASTORE |
|
protected static java.lang.String |
METHOD_GET_DATASTORE_FOR_CONNECTION |
|
static java.lang.String |
METHOD_GET_TARGET_DATASTORE |
| Fields inherited from class | Fields |
|---|---|
class AbstractMethodDecoratingTransformation |
ANNOTATION_NAME_EXCLUDES, DECORATED_METHODS, METHOD_NAME_EXCLUDES |
class AbstractGormASTTransformation |
compilationUnit |
| Constructor and description |
|---|
AbstractDatastoreMethodDecoratingTransformation
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected void |
enhanceClassNode(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode declaringClassNode) |
|
protected void |
weaveSetTargetDatastoreBody(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode declaringClassNode, org.codehaus.groovy.ast.expr.Expression datastoreVar, org.codehaus.groovy.ast.stmt.BlockStatement setTargetDatastoreBody) |