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, isCount
public CriteriaQuery(@Nullable Criteria criteria, org.springframework.data.mapping.context.MappingContext<?,NosqlPersistentProperty> mappingContext)
public CriteriaQuery with(org.springframework.data.domain.Sort sort)
with
in class NosqlQuery
public CriteriaQuery with(@NonNull org.springframework.data.domain.Pageable pageable)
with
in class NosqlQuery
public CriteriaQuery limit(Integer limit)
limit
.limit
in class NosqlQuery
public CriteriaQuery setCount(boolean isCount)
setCount
in class NosqlQuery
public 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 NosqlQuery
public CriteriaQuery setDistinct(boolean isDistinct)
public CriteriaQuery project(org.springframework.data.repository.query.ReturnedType returnedType)
Copyright © 2022 Oracle Corporation. All rights reserved.