@CompileStatic abstract class AbstractStringQueryImplementer extends AbstractReadOperationImplementer implements AnnotatedServiceImplementer<Query>
Abstract support for String-based queries
| Constructor and description |
|---|
AbstractStringQueryImplementer() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected abstract Statement |
buildQueryReturnStatement(ClassNode domainClassNode, MethodNode abstractMethodNode, MethodNode newMethodNode, Expression args)Builds the query return statement |
|
protected QueryStringTransformer |
createQueryStringTransformer(SourceUnit sourceUnit, VariableScope scope)Creates the query string transformer |
|
void |
doImplement(ClassNode domainClassNode, MethodNode abstractMethodNode, MethodNode newMethodNode, ClassNode targetClassNode) |
|
boolean |
doesImplement(ClassNode domainClass, MethodNode methodNode) |
|
protected java.lang.Class<? extends java.lang.annotation.Annotation> |
getAnnotationType() |
|
java.lang.Iterable<java.lang.String> |
getHandledPrefixes() |
|
int |
getOrder() |
|
boolean |
isAnnotated(ClassNode domainClass, MethodNode methodNode) |
| Methods inherited from class | Name |
|---|---|
class AbstractReadOperationImplementer |
applyDefaultTransactionHandling, doImplement, doesEnhance, enhance, findArgsExpression, implement, resolveDomainClassFromSignature |
class AbstractServiceImplementer |
buildInstanceApiLookup, buildStaticApiLookup, copyClassAnnotations, datastore, doesImplement, findConnectionId, findStaticApiForConnectionId, getOrder, isCompatibleReturnType, isValidParameter, multiTenantDatastore, resolvePrefix, tenantService |
Builds the query return statement
domainClassNode - The domain classargs - The argumentsCreates the query string transformer
sourceUnit - The source unitscope - the variable scope