次の方法で共有


CriteriaType Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.spring.data.cosmos.core.query.CriteriaType

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()

public String getSqlKeyword()

To get sql keyword

Returns

String

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
CriteriaType operation

Returns

boolean
True if match, or false.

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
CriteriaType operation

Returns

boolean
True if match, or false.

isFunction(CriteriaType type)

public static boolean isFunction(CriteriaType type)

Check if CriteriaType operation is a function.

Parameters

type
CriteriaType
CriteriaType

Returns

boolean
True if match, or false.

isFunctionWithCaseSensitiveSupport(CriteriaType type)

public static boolean isFunctionWithCaseSensitiveSupport(CriteriaType type)

Check if CriteriaType operation is a function.

Parameters

type
CriteriaType
CriteriaType

Returns

boolean
True if match, or false.

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
PartType to be checked.

Returns

boolean
True if supported, or false.

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
PartType to be checked.

Returns

boolean
True if unsupported, or false.

isUnary(CriteriaType type)

public static boolean isUnary(CriteriaType type)

Check if CriteriaType operation is unary, with format of (ops A -> B).

Parameters

type
CriteriaType
CriteriaType

Returns

boolean
True if match, or false.

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
PartType to be converted.

Returns

CriteriaType

valueOf(String name)

public static CriteriaType valueOf(String name)

Parameters

name
String

Returns

values()

public static CriteriaType[] values()

Returns

Applies to