@java.lang.SuppressWarnings({"rawtypes", "unchecked"})
public abstract class DynamicFinder
extends AbstractFinder
    Abstract base class for dynamic finders.
| Modifiers | Name | Description | 
|---|---|---|
| static java.lang.String | ARGUMENT_CACHE | |
| static java.lang.String | ARGUMENT_FETCH | |
| static java.lang.String | ARGUMENT_FETCH_SIZE | |
| static java.lang.String | ARGUMENT_FLUSH_MODE | |
| static java.lang.String | ARGUMENT_IGNORE_CASE | |
| static java.lang.String | ARGUMENT_LOCK | |
| static java.lang.String | ARGUMENT_MAX | |
| static java.lang.String | ARGUMENT_OFFSET | |
| static java.lang.String | ARGUMENT_ORDER | |
| static java.lang.String | ARGUMENT_READ_ONLY | |
| static java.lang.String | ARGUMENT_SORT | |
| static java.lang.String | ARGUMENT_TIMEOUT | |
| static java.lang.String | ORDER_ASC | |
| static java.lang.String | ORDER_DESC | |
| protected MappingContext | mappingContext | |
| protected java.util.regex.Pattern | pattern | 
| Fields inherited from class | Fields | 
|---|---|
| class AbstractFinder | datastore | 
| Constructor and description | 
|---|
| protected DynamicFinder
                                (java.util.regex.Pattern pattern, java.lang.String[] operators, Datastore datastore) | 
| protected DynamicFinder
                                (java.util.regex.Pattern pattern, java.lang.String[] operators, MappingContext mappingContext) | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | static void | applyDetachedCriteria(Query query, AbstractDetachedCriteria detachedCriteria)Applies the given detached criteria to the given query | 
|  | static void | applySortForMap(Query query, java.util.Map sortMap, boolean ignoreCase)Applies sorting logic to the given query from the given map | 
|  | static MatchSpec | buildMatchSpec(java.lang.String prefix, java.lang.String methodName, int parameterCount)Builds a match specification that can be used to establish information about a dynamic finder compilation for the purposes of compilation etc. | 
|  | protected void | configureQueryWithArguments(java.lang.Class clazz, Query query, java.lang.Object[] arguments) | 
|  | DynamicFinderInvocation | createFinderInvocation(java.lang.Class clazz, java.lang.String methodName, groovy.lang.Closure additionalCriteria, java.lang.Object[] arguments) | 
|  | protected java.lang.Object | doInvokeInternal(DynamicFinderInvocation invocation) | 
|  | protected MethodExpression | findMethodExpression(java.lang.Class clazz, java.lang.String expression) | 
|  | protected static MethodExpression | findMethodExpression(java.lang.String expression) | 
|  | static javax.persistence.FetchType | getFetchMode(java.lang.Object object)Retrieves the fetch mode for the specified instance; otherwise returns the default FetchMode. | 
|  | java.lang.Object | invoke(java.lang.Class clazz, java.lang.String methodName, groovy.lang.Closure additionalCriteria, java.lang.Object[] arguments) | 
|  | java.lang.Object | invoke(java.lang.Class clazz, java.lang.String methodName, DetachedCriteria detachedCriteria, java.lang.Object[] arguments) | 
|  | java.lang.Object | invoke(java.lang.Class clazz, java.lang.String methodName, java.lang.Object[] arguments) | 
|  | boolean | isMethodMatch(java.lang.String methodName)Checks whether the given method is a match | 
|  | static void | populateArgumentsForCriteria(BuildableCriteria query, java.util.Map argMap)Populates arguments for the given query form the given map | 
|  | static void | populateArgumentsForCriteria(java.lang.Class<?> targetClass, Query query, java.util.Map argMap)Populates arguments for the given query form the given map | 
|  | static void | registerNewMethodExpression(java.lang.Class methodExpression)Registers a new method expression. | 
|  | void | setPattern(java.lang.String pattern)Sets the pattern to use for this finder | 
| Methods inherited from class | Name | 
|---|---|
| class AbstractFinder | applyAdditionalCriteria, execute, execute | 
| class java.lang.Object | java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
Applies the given detached criteria to the given query
query -  The querydetachedCriteria -  The detached criteriaApplies sorting logic to the given query from the given map
query -  The querysortMap -  The sort mapignoreCase -  Whether toi ignore caseBuilds a match specification that can be used to establish information about a dynamic finder compilation for the purposes of compilation etc.
prefix -  The dynamic finder prefix. For example 'findBy'methodName -  The full method nameparameterCount -  The number of parametersRetrieves the fetch mode for the specified instance; otherwise returns the default FetchMode.
object -  The object, converted to a stringChecks whether the given method is a match
methodName -  The method namePopulates arguments for the given query form the given map
query -  The queryargMap -  The query argumentsPopulates arguments for the given query form the given map
query -  The queryargMap -  The query argumentsRegisters a new method expression. The Class must extends from the class MethodExpression and provide a constructor that accepts a Class parameter and a String parameter.
methodExpression -  A class that extends from MethodExpressionSets the pattern to use for this finder
pattern -  A regular expression