|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Part.Type> org.springframework.data.repository.query.parser.Part.Type
public static enum Part.Type
The type of a method name part. Used to create query parts in various ways.
Enum Constant Summary | |
---|---|
BETWEEN
|
|
GREATER_THAN
|
|
IN
|
|
IS_NOT_NULL
|
|
IS_NULL
|
|
LESS_THAN
|
|
LIKE
|
|
NEAR
|
|
NEGATING_SIMPLE_PROPERTY
|
|
NOT_IN
|
|
NOT_LIKE
|
|
SIMPLE_PROPERTY
|
|
WITHIN
|
Method Summary | |
---|---|
String |
extractProperty(String part)
Callback method to extract the actual property to be bound from the given part. |
static Part.Type |
fromProperty(String rawProperty,
Class<?> clazz)
Returns the Part.Type of the Part for the given raw
property and the given Class . |
int |
getNumberOfArguments()
Returns the number of arguments the property binds. |
protected boolean |
supports(String property,
Class<?> clazz)
Returns whether the the type supports the given raw property. |
static Part.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Part.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Part.Type BETWEEN
public static final Part.Type IS_NOT_NULL
public static final Part.Type IS_NULL
public static final Part.Type LESS_THAN
public static final Part.Type GREATER_THAN
public static final Part.Type NOT_LIKE
public static final Part.Type LIKE
public static final Part.Type NOT_IN
public static final Part.Type IN
public static final Part.Type NEAR
public static final Part.Type WITHIN
public static final Part.Type NEGATING_SIMPLE_PROPERTY
public static final Part.Type SIMPLE_PROPERTY
Method Detail |
---|
public static Part.Type[] values()
for (Part.Type c : Part.Type.values()) System.out.println(c);
public static Part.Type valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Part.Type fromProperty(String rawProperty, Class<?> clazz)
Part.Type
of the Part
for the given raw
property and the given Class
. This will try to detect e.g.
keywords contained in the raw property that trigger special query
creation. Returns SIMPLE_PROPERTY
by default.
rawProperty
- clazz
-
protected boolean supports(String property, Class<?> clazz)
property
- clazz
-
public int getNumberOfArguments()
public String extractProperty(String part)
part
-
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |