public enum CriteriaType extends Enum<CriteriaType>
| Enum Constant and Description |
|---|
AFTER |
ALL |
AND |
ARRAY_CONTAINS |
BEFORE |
BETWEEN |
CONTAINING |
ENDS_WITH |
FALSE |
GREATER_THAN |
GREATER_THAN_EQUAL |
IN |
IS_EQUAL |
IS_NOT_NULL |
IS_NULL |
LESS_THAN |
LESS_THAN_EQUAL |
NOT |
NOT_IN |
OR |
STARTS_WITH |
TRUE |
| Modifier and Type | Method and Description |
|---|---|
String |
getSqlKeyword()
To get sql keyword
|
static boolean |
isBinary(CriteriaType type)
Check if CriteriaType operation is binary, with format of (A ops A -> B).
|
static boolean |
isClosed(CriteriaType type)
Check if CriteriaType operation is closure, with format of (A ops A -> A).
|
static boolean |
isFunction(CriteriaType type)
Check if CriteriaType operation is a function.
|
static boolean |
isPartTypeSupported(org.springframework.data.repository.query.parser.Part.Type partType)
Check if PartType is supported.
|
static boolean |
isPartTypeUnSupported(org.springframework.data.repository.query.parser.Part.Type partType)
Check if PartType is NOT supported.
|
static boolean |
isUnary(CriteriaType type)
Check if CriteriaType operation is unary, with format of (ops A -> B).
|
static CriteriaType |
toCriteriaType(org.springframework.data.repository.query.parser.Part.Type partType)
Convert to criteria type.
|
static CriteriaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CriteriaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CriteriaType ALL
public static final CriteriaType IS_EQUAL
public static final CriteriaType OR
public static final CriteriaType AND
public static final CriteriaType NOT
public static final CriteriaType BEFORE
public static final CriteriaType AFTER
public static final CriteriaType IN
public static final CriteriaType NOT_IN
public static final CriteriaType IS_NULL
public static final CriteriaType IS_NOT_NULL
public static final CriteriaType LESS_THAN
public static final CriteriaType LESS_THAN_EQUAL
public static final CriteriaType GREATER_THAN
public static final CriteriaType GREATER_THAN_EQUAL
public static final CriteriaType CONTAINING
public static final CriteriaType ENDS_WITH
public static final CriteriaType STARTS_WITH
public static final CriteriaType TRUE
public static final CriteriaType FALSE
public static final CriteriaType BETWEEN
public static final CriteriaType ARRAY_CONTAINS
public static CriteriaType[] values()
public static CriteriaType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getSqlKeyword()
public static boolean isPartTypeUnSupported(@NonNull
org.springframework.data.repository.query.parser.Part.Type partType)
partType - PartType to be checked.public static boolean isPartTypeSupported(@NonNull
org.springframework.data.repository.query.parser.Part.Type partType)
partType - PartType to be checked.public static CriteriaType toCriteriaType(@NonNull org.springframework.data.repository.query.parser.Part.Type partType)
partType - PartType to be converted.UnsupportedOperationException - for unsupported part typepublic static boolean isClosed(CriteriaType type)
type - CriteriaType operationpublic static boolean isBinary(CriteriaType type)
type - CriteriaType operationpublic static boolean isFunction(CriteriaType type)
type - CriteriaTypepublic static boolean isUnary(CriteriaType type)
type - CriteriaTypeVisit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.