public class CriteriaQuery extends NosqlQuery
isCount, limit, pageable, sort| Constructor and Description |
|---|
CriteriaQuery(Criteria criteria,
org.springframework.data.mapping.context.MappingContext<?,NosqlPersistentProperty> mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateSql(String tableName,
Map<String,Object> params,
String idPropertyName) |
Criteria |
getCriteria() |
Optional<Criteria> |
getCriteriaByType(CriteriaType criteriaType) |
org.springframework.data.domain.Pageable |
getPageable() |
CriteriaQuery |
limit(Integer limit)
Limit the number of returned rows to
limit. |
CriteriaQuery |
project(org.springframework.data.repository.query.ReturnedType returnedType) |
CriteriaQuery |
setCount(boolean isCount) |
CriteriaQuery |
setDistinct(boolean isDistinct) |
CriteriaQuery |
with(org.springframework.data.domain.Pageable pageable) |
CriteriaQuery |
with(org.springframework.data.domain.Sort sort) |
getLimit, getSort, isCountpublic CriteriaQuery(@Nullable
Criteria criteria,
org.springframework.data.mapping.context.MappingContext<?,NosqlPersistentProperty> mappingContext)
public CriteriaQuery with(org.springframework.data.domain.Sort sort)
with in class NosqlQuerypublic CriteriaQuery with(@NonNull org.springframework.data.domain.Pageable pageable)
with in class NosqlQuerypublic CriteriaQuery limit(Integer limit)
limit.limit in class NosqlQuerypublic CriteriaQuery setCount(boolean isCount)
setCount in class NosqlQuerypublic Criteria getCriteria()
public org.springframework.data.domain.Pageable getPageable()
public Optional<Criteria> getCriteriaByType(@NonNull CriteriaType criteriaType)
public String generateSql(String tableName, Map<String,Object> params, String idPropertyName)
generateSql in class NosqlQuerypublic CriteriaQuery setDistinct(boolean isDistinct)
public CriteriaQuery project(org.springframework.data.repository.query.ReturnedType returnedType)
Copyright © 2021 Oracle Corporation. All rights reserved.