@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_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_SORT |
|
static java.lang.String |
ORDER_ASC |
|
static java.lang.String |
ORDER_DESC |
|
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) |
Type | Name and description |
---|---|
static void |
applyDetachedCriteria(Query q, DetachedCriteria detachedCriteria) |
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) |
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) |
static void |
populateArgumentsForCriteria(java.lang.Class<?> targetClass, Query q, java.util.Map argMap) |
static void |
registerNewMethodExpression(java.lang.Class methodExpression) Registers a new method expression. |
void |
setPattern(java.lang.String pattern) |
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() |
Registers 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 MethodExpression