CriteriaType Enum
- java.
lang. Object - java.
lang. Enum - com.
azure. spring. data. cosmos. core. query. CriteriaType
- com.
- java.
public enum CriteriaType
extends Enum<CriteriaType>
Enum of criteria type
Fields
| AFTER |
After |
| ALL |
All |
| AND |
And |
| ARRAY_CONTAINS |
Array contains |
| BEFORE |
Before |
| BETWEEN |
Between |
| CONTAINING |
Contain |
| ENDS_WITH |
Ends with |
| FALSE |
False |
| GREATER_THAN |
Greater than |
| GREATER_THAN_EQUAL |
Greater than or equal |
| IN |
In |
| IS_EQUAL |
Is equal |
| IS_NOT_NULL |
Is not null |
| IS_NULL |
Is null |
| LESS_THAN |
Less than |
| LESS_THAN_EQUAL |
Less than or equal |
| NOT |
Not |
| NOT_CONTAINING |
Not Contain |
| NOT_IN |
Not in |
| OR |
Or |
| STARTS_WITH |
Starts with |
| STRING_EQUALS |
String equals |
| TRUE |
True |
Methods inherited from java.lang.Enum
Methods inherited from java.lang.Object
Methods
getSqlKeyword()
isBinary(CriteriaType type)
public static boolean isBinary(CriteriaType type)
Check if CriteriaType operation is binary, with format of (A ops A -> B). Example: IS_EQUAL, AFTER.
Parameters
- type
- CriteriaType
Returns
isClosed(CriteriaType type)
public static boolean isClosed(CriteriaType type)
Check if CriteriaType operation is closure, with format of (A ops A -> A). Example: AND, OR.
Parameters
- type
- CriteriaType
Returns
isFunction(CriteriaType type)
public static boolean isFunction(CriteriaType type)
Check if CriteriaType operation is a function.
Parameters
- type
- CriteriaType
Returns
isFunctionWithCaseSensitiveSupport(CriteriaType type)
public static boolean isFunctionWithCaseSensitiveSupport(CriteriaType type)
Check if CriteriaType operation is a function.
Parameters
- type
- CriteriaType
Returns
isPartTypeSupported(Part.Type partType)
public static boolean isPartTypeSupported(Part.Type partType)
Check if PartType is supported.
Parameters
- partType
- org.springframework.data.repository.query.parser.Part.Type
Returns
isPartTypeUnSupported(Part.Type partType)
public static boolean isPartTypeUnSupported(Part.Type partType)
Check if PartType is NOT supported.
Parameters
- partType
- org.springframework.data.repository.query.parser.Part.Type
Returns
isUnary(CriteriaType type)
public static boolean isUnary(CriteriaType type)
Check if CriteriaType operation is unary, with format of (ops A -> B).
Parameters
- type
- CriteriaType
Returns
toCriteriaType(Part.Type partType)
public static CriteriaType toCriteriaType(Part.Type partType)
Convert to criteria type.
Parameters
- partType
- org.springframework.data.repository.query.parser.Part.Type