public class QueryByExampleRedisExecutor<T> extends Object implements QueryByExampleExecutor<T>
Query-by-Example operations.
This executor uses ExampleQueryMapper to map Examples into KeyValueQuery to execute its query
methods.| Constructor and Description |
|---|
QueryByExampleRedisExecutor(EntityInformation<T,?> entityInformation,
RedisKeyValueTemplate keyValueTemplate)
|
QueryByExampleRedisExecutor(EntityInformation<T,?> entityInformation,
RedisKeyValueTemplate keyValueTemplate,
IndexResolver indexResolver)
|
| Modifier and Type | Method and Description |
|---|---|
<S extends T> |
count(Example<S> example) |
<S extends T> |
exists(Example<S> example) |
<S extends T> |
findAll(Example<S> example) |
<S extends T> |
findAll(Example<S> example,
Pageable pageable) |
<S extends T> |
findAll(Example<S> example,
Sort sort) |
<S extends T> |
findOne(Example<S> example) |
public QueryByExampleRedisExecutor(EntityInformation<T,?> entityInformation, RedisKeyValueTemplate keyValueTemplate)
QueryByExampleRedisExecutor given EntityInformation and RedisKeyValueTemplate.
This constructor uses the configured IndexResolver from the converter.entityInformation - must not be null.keyValueTemplate - must not be null.public QueryByExampleRedisExecutor(EntityInformation<T,?> entityInformation, RedisKeyValueTemplate keyValueTemplate, IndexResolver indexResolver)
entityInformation - must not be null.keyValueTemplate - must not be null.public <S extends T> Optional<S> findOne(Example<S> example)
findOne in interface QueryByExampleExecutor<T>public <S extends T> Iterable<S> findAll(Example<S> example)
findAll in interface QueryByExampleExecutor<T>public <S extends T> Iterable<S> findAll(Example<S> example, Sort sort)
findAll in interface QueryByExampleExecutor<T>public <S extends T> Page<S> findAll(Example<S> example, Pageable pageable)
findAll in interface QueryByExampleExecutor<T>public <S extends T> long count(Example<S> example)
count in interface QueryByExampleExecutor<T>public <S extends T> boolean exists(Example<S> example)
exists in interface QueryByExampleExecutor<T>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.