@CompileStatic class FindOneImplementer extends AbstractDetachedCriteriaServiceImplementor implements SingleResultServiceImplementer<GormEntity>
An implementer that implements logic for finding a single entity
| Fields inherited from class | Fields |
|---|---|
class AbstractDetachedCriteriaServiceImplementor |
DETACHED_CRITERIA |
| Type | Name and description |
|---|---|
static List<String> |
HANDLED_PREFIXES |
| Constructor and description |
|---|
FindOneImplementer() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected Statement |
buildReturnStatement(ClassNode targetDomainClass, MethodNode abstractMethodNode, Expression queryMethodCall, Expression args, MethodNode newMethodNode) |
|
protected String |
findMethodToInvoke(ClassNode domainClassNode, MethodNode newMethodNode) |
|
Iterable<String> |
getHandledPrefixes() |
|
void |
implementById(ClassNode domainClassNode, MethodNode abstractMethodNode, MethodNode newMethodNode, ClassNode targetClassNode, BlockStatement body, Expression byIdLookup) |
|
void |
implementWithQuery(ClassNode domainClassNode, MethodNode abstractMethodNode, MethodNode newMethodNode, ClassNode targetClassNode, BlockStatement body, VariableExpression detachedCriteriaVar, Expression queryArgs) |
|
protected boolean |
isCompatibleReturnType(ClassNode domainClass, MethodNode methodNode, ClassNode returnType, String prefix) |
|
protected ClassNode |
resolveDomainClassFromSignature(ClassNode currentDomainClassNode, MethodNode methodNode) |
Groovy Documentation