@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 q, AbstractDetachedCriteria detachedCriteria) |
|
static void |
applySortForMap(Query q, java.util.Map sortMap, boolean ignoreCase) |
|
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) |
|
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) |
|
static void |
populateArgumentsForCriteria(BuildableCriteria q, java.util.Map argMap) |
|
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() |
Retrieves the fetch mode for the specified instance; otherwise returns the default FetchMode.
object
- The object, converted to a stringRegisters 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