你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Criteria Class

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

public final class Criteria

Class of criteria

Method Summary

Modifier and Type Method and Description
org.springframework.data.repository.query.parser.Part.IgnoreCaseType getIgnoreCase()

Ignore case flag

static Criteria getInstance(CriteriaType type)

To get a new criteria instance

static Criteria getInstance(CriteriaType type, Criteria left, Criteria right)

To get a criteria instance with sub criteria

static Criteria getInstance(CriteriaType type, String subject, List<Object> values, Part.IgnoreCaseType ignoreCase)

To get a criteria instance with subject and ignore case

List<Criteria> getSubCriteria()

To get sub criteria

String getSubject()

To get subject

List<Object> getSubjectValues()

To get CriteriaType

CriteriaType getType()

To get CriteriaType

Methods inherited from java.lang.Object

Method Details

getIgnoreCase

public Part.IgnoreCaseType getIgnoreCase()

Ignore case flag

Returns:

ignore case flag

getInstance

public static Criteria getInstance(CriteriaType type)

To get a new criteria instance

Parameters:

type - CriteriaType

Returns:

Criteria instance

getInstance

public static Criteria getInstance(CriteriaType type, Criteria left, Criteria right)

To get a criteria instance with sub criteria

Parameters:

type - CriteriaType
left - Criteria
right - Criteria

Returns:

Criteria instance

getInstance

public static Criteria getInstance(CriteriaType type, String subject, List values, Part.IgnoreCaseType ignoreCase)

To get a criteria instance with subject and ignore case

Parameters:

type - CriteriaType
subject - subject
values - subject value
ignoreCase - ignore case flag

Returns:

Criteria instance

getSubCriteria

public List getSubCriteria()

To get sub criteria

Returns:

List of sub criteria

getSubject

public String getSubject()

To get subject

Returns:

subject value

getSubjectValues

public List getSubjectValues()

To get CriteriaType

Returns:

CriteriaType

getType

public CriteriaType getType()

To get CriteriaType

Returns:

CriteriaType

Applies to