public enum CriteriaType extends Enum<CriteriaType>
Enum Constant and Description |
---|
AFTER |
ALL |
AND |
BEFORE |
BETWEEN |
CONTAINING |
ENDS_WITH |
EXISTS |
FALSE |
GREATER_THAN |
GREATER_THAN_EQUAL |
IN |
IS_EQUAL |
IS_NOT_NULL |
IS_NULL |
LESS_THAN |
LESS_THAN_EQUAL |
LIKE |
NEAR |
NOT |
NOT_CONTAINING |
NOT_IN |
NOT_LIKE |
OR |
REGEX |
STARTS_WITH |
TRUE |
WITHIN |
Modifier and Type | Method and Description |
---|---|
String |
getSqlKeyword() |
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) |
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 NOT_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 REGEX
public static final CriteriaType LIKE
public static final CriteriaType NOT_LIKE
public static final CriteriaType EXISTS
public static final CriteriaType NEAR
public static final CriteriaType WITHIN
public static CriteriaType[] values()
for (CriteriaType c : CriteriaType.values()) System.out.println(c);
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)
public static boolean isPartTypeSupported(@NonNull org.springframework.data.repository.query.parser.Part.Type partType)
public static CriteriaType toCriteriaType(@NonNull org.springframework.data.repository.query.parser.Part.Type partType)
public static boolean isClosed(CriteriaType type)
public static boolean isBinary(CriteriaType type)
public static boolean isFunction(CriteriaType type)
public static boolean isUnary(CriteriaType type)
Copyright © 2022 Oracle Corporation. All rights reserved.