@groovy.transform.CompileStatic @org.codehaus.groovy.transform.GroovyASTTransformation(phase: CompilePhase.CANONICALIZATION) class TenantTransform extends AbstractDatastoreMethodDecoratingTransformation implements Ordered
Implementation of Tenant
Modifiers | Name | Description |
---|---|---|
private static java.lang.Object |
APPLIED_MARKER |
|
static org.codehaus.groovy.ast.ClassNode |
CURRENT_TENANT_ANNOTATION_TYPE |
|
private static org.codehaus.groovy.ast.expr.ClassExpression |
CURRENT_TENANT_ANNOTATION_TYPE_EXPR |
|
private static org.codehaus.groovy.ast.Parameter[] |
N0_PARAMETER |
|
static int |
POSITION |
The position of the transform. |
static java.lang.String |
RENAMED_METHOD_PREFIX |
|
static org.codehaus.groovy.ast.ClassNode |
TENANT_ANNOTATION_TYPE |
|
private static org.codehaus.groovy.ast.expr.ClassExpression |
TENANT_ANNOTATION_TYPE_EXPR |
|
static java.lang.String |
VAR_TENANT_ID |
|
static org.codehaus.groovy.ast.ClassNode |
WITHOUT_TENANT_ANNOTATION_TYPE |
|
private static org.codehaus.groovy.ast.expr.ClassExpression |
WITHOUT_TENANT_ANNOTATION_TYPE_EXPR |
Fields inherited from class | Fields |
---|---|
class AbstractDatastoreMethodDecoratingTransformation |
FIELD_TARGET_DATASTORE, METHOD_GET_DATASTORE_FOR_CONNECTION, METHOD_GET_TARGET_DATASTORE |
class AbstractMethodDecoratingTransformation |
ANNOTATION_NAME_EXCLUDES, DECORATED_METHODS, METHOD_NAME_EXCLUDES |
class AbstractGormASTTransformation |
compilationUnit |
Constructor and description |
---|
TenantTransform
() |
Type Params | Return Type | Name and description |
---|---|---|
|
org.codehaus.groovy.ast.expr.MethodCallExpression |
buildDelegatingMethodCall(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode, org.codehaus.groovy.ast.expr.MethodCallExpression originalMethodCallExpr, org.codehaus.groovy.ast.stmt.BlockStatement newMethodBody) |
|
protected org.codehaus.groovy.ast.ClassNode |
getAnnotationType() |
|
protected java.lang.Object |
getAppliedMarker() |
|
int |
getOrder() |
|
protected java.lang.String |
getRenamedMethodPrefix() |
|
static boolean |
hasTenantAnnotation(org.codehaus.groovy.ast.AnnotatedNode node) Whether the given node is Multi Tenant |
|
protected boolean |
isValidAnnotation(org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.AnnotatedNode classNode) |
|
protected org.codehaus.groovy.ast.Parameter[] |
prepareNewMethodParameters(org.codehaus.groovy.ast.MethodNode methodNode, java.util.Map<java.lang.String, org.codehaus.groovy.ast.ClassNode> genericsSpec, org.codehaus.groovy.ast.ClassNode classNode) |
The position of the transform. Before the transactional transform
Whether the given node is Multi Tenant
node
- The node