|
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.
Method Summary | |
---|---|
String |
extractProperty(String part)
Callback method to extract the actual propertyPath to be bound from the given part. |
static Part.Type |
fromProperty(String rawProperty)
Returns the Part.Type of the Part for the given raw propertyPath. |
int |
getNumberOfArguments()
Returns the number of arguments the propertyPath binds. |
protected boolean |
supports(String property)
Returns whether the the type supports the given raw propertyPath. |
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 LESS_THAN_EQUAL
public static final Part.Type GREATER_THAN
public static final Part.Type GREATER_THAN_EQUAL
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 REGEX
public static final Part.Type EXISTS
public static final Part.Type TRUE
public static final Part.Type FALSE
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)
Part.Type
of the Part
for the given raw propertyPath. This will
try to detect e.g. keywords contained in the raw propertyPath that trigger special query creation. Returns
SIMPLE_PROPERTY
by default.
rawProperty
-
protected boolean supports(String property)
propertyPath
-
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 |