T
- the domain type to manageID
- the identifier type of the domain typepublic class QuerydslKeyValueRepository<T,ID> extends SimpleKeyValueRepository<T,ID> implements QuerydslPredicateExecutor<T>
Constructor and Description |
---|
QuerydslKeyValueRepository(EntityInformation<T,ID> entityInformation,
KeyValueOperations operations)
|
QuerydslKeyValueRepository(EntityInformation<T,ID> entityInformation,
KeyValueOperations operations,
EntityPathResolver resolver)
Creates a new
QuerydslKeyValueRepository for the given EntityInformation ,
KeyValueOperations and EntityPathResolver . |
Modifier and Type | Method and Description |
---|---|
long |
count(com.querydsl.core.types.Predicate predicate) |
boolean |
exists(com.querydsl.core.types.Predicate predicate) |
Iterable<T> |
findAll(com.querydsl.core.types.OrderSpecifier<?>... orders) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
com.querydsl.core.types.OrderSpecifier<?>... orders) |
Page<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Pageable pageable) |
Iterable<T> |
findAll(com.querydsl.core.types.Predicate predicate,
Sort sort) |
Optional<T> |
findOne(com.querydsl.core.types.Predicate predicate) |
protected com.querydsl.collections.AbstractCollQuery<T,?> |
prepareQuery(com.querydsl.core.types.Predicate predicate)
Creates executable query for given
Predicate . |
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAll, findAll, findAllById, findById, save, saveAll
public QuerydslKeyValueRepository(EntityInformation<T,ID> entityInformation, KeyValueOperations operations)
entityInformation
- must not be null.operations
- must not be null.public QuerydslKeyValueRepository(EntityInformation<T,ID> entityInformation, KeyValueOperations operations, EntityPathResolver resolver)
QuerydslKeyValueRepository
for the given EntityInformation
,
KeyValueOperations
and EntityPathResolver
.entityInformation
- must not be null.operations
- must not be null.resolver
- must not be null.public Optional<T> findOne(com.querydsl.core.types.Predicate predicate)
findOne
in interface QuerydslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate)
findAll
in interface QuerydslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll
in interface QuerydslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.Predicate predicate, Sort sort)
findAll
in interface QuerydslPredicateExecutor<T>
public Page<T> findAll(com.querydsl.core.types.Predicate predicate, Pageable pageable)
findAll
in interface QuerydslPredicateExecutor<T>
public Iterable<T> findAll(com.querydsl.core.types.OrderSpecifier<?>... orders)
findAll
in interface QuerydslPredicateExecutor<T>
public long count(com.querydsl.core.types.Predicate predicate)
count
in interface QuerydslPredicateExecutor<T>
public boolean exists(com.querydsl.core.types.Predicate predicate)
exists
in interface QuerydslPredicateExecutor<T>
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.