Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
static boolean
Check if CriteriaType operation is binary, with format of (A ops A -> B).
static boolean
Check if CriteriaType operation is closure, with format of (A ops A -> A).
static boolean
Check if CriteriaType operation is a function.
static boolean
Check if PartType is supported.
static boolean
Check if PartType is NOT supported.
static boolean
Check if CriteriaType operation is unary, with format of (ops A -> B).
toCriteriaType (org.springframework.data.repository.query.parser.Part.Type partType)
Returns the enum constant of this type with the specified name.
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 , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Method Details
values
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
isPartTypeUnSupported
public static boolean isPartTypeUnSupported (@NonNull
org.springframework.data.repository.query.parser.Part.Type partType)
Check if PartType is NOT supported.
Returns:
True if unsupported, or false.
isPartTypeSupported
public static boolean isPartTypeSupported (@NonNull
org.springframework.data.repository.query.parser.Part.Type partType)
Check if PartType is supported.
Returns:
True if supported, or false.
toCriteriaType
public static CriteriaType toCriteriaType (@NonNull
org.springframework.data.repository.query.parser.Part.Type partType)
isClosed
Check if CriteriaType operation is closure, with format of (A ops A -> A).
Example: AND, OR.
Returns:
True if match, or false.
isBinary
Check if CriteriaType operation is binary, with format of (A ops A -> B).
Example: IS_EQUAL, AFTER.
Returns:
True if match, or false.
isFunction
Check if CriteriaType operation is a function.
Returns:
True if match, or false.
isUnary
Check if CriteriaType operation is unary, with format of (ops A -> B).
Returns:
True if match, or false.