@java.lang.SuppressWarnings("rawtypes")
public interface FinderGrammar
The composition seam finder implementations use to parse a dynamic finder method name into a
DynamicFinderInvocation and build the resulting Query.Junction, without
subclassing DynamicFinder. Implemented by DynamicFinder itself; finder
implementations (in this package and in grails-datamapping-rx) hold a DynamicFinder
instance as a composed collaborator rather than extending it.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public DynamicFinderInvocation |
createFinderInvocation(java.lang.Class clazz, java.lang.String methodName, Closure additionalCriteria, java.lang.Object[] arguments)Parses a dynamic finder method invocation into its constituent MethodExpressions. |
|
public boolean |
firstExpressionIsRequiredBoolean()
|
|
public Junction |
getJunction(DynamicFinderInvocation invocation)Builds the AND/OR junction of criteria for the given invocation. |
|
public boolean |
isMethodMatch(java.lang.String methodName)
|
Parses a dynamic finder method invocation into its constituent MethodExpressions.
clazz - The persistent class the finder targetsmethodName - The full method nameadditionalCriteria - An optional additional-criteria closurearguments - The method call arguments
Builds the AND/OR junction of criteria for the given invocation.
invocation - The invocation
methodName - The method name