@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 Class<? extends Annotation> |
getAnnotationType() |
|
Iterable<String> |
getHandledPrefixes() |
|
int |
getOrder() |
|
boolean |
isAnnotated(ClassNode domainClass, MethodNode methodNode) |
Builds the query return statement
domainClassNode - The domain classargs - The argumentsCreates the query string transformer
sourceUnit - The source unitscope - the variable scope