クラス QueryByExampleRedisExecutor<T>
java.lang.ObjectSE
org.springframework.data.redis.repository.support.QueryByExampleRedisExecutor<T>
- 実装されたすべてのインターフェース:
Aware
、BeanClassLoaderAware
、BeanFactoryAware
、ListQueryByExampleExecutor<T>
、QueryByExampleExecutor<T>
public class QueryByExampleRedisExecutor<T>
extends ObjectSE
implements ListQueryByExampleExecutor<T>, BeanFactoryAware, BeanClassLoaderAware
Redis
Query-by-Example
操作を実装するリポジトリフラグメント。 このエグゼキュータは、ExampleQueryMapper
を使用して Example
を KeyValueQuery
にマッピングし、クエリメソッドを実行します。
- 導入:
- 2.1
- 作成者:
- Mark Paluch, Christoph Strobl
コンストラクターのサマリー
コンストラクターコンストラクター説明QueryByExampleRedisExecutor
(EntityInformation<T, ?> entityInformation, RedisKeyValueTemplate keyValueTemplate) QueryByExampleRedisExecutor
(EntityInformation<T, ?> entityInformation, RedisKeyValueTemplate keyValueTemplate, IndexResolver indexResolver) メソッドのサマリー
修飾子と型メソッド説明<S extends T>
long<S extends T>
boolean<S extends T,
R>
RfindBy
(Example<S> example, FunctionSE<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) <S extends T>
OptionalSE<S>void
setBeanClassLoader
(ClassLoaderSE classLoader) void
setBeanFactory
(BeanFactory beanFactory)
コンストラクターの詳細
QueryByExampleRedisExecutor
public QueryByExampleRedisExecutor(EntityInformation<T, ?> entityInformation, RedisKeyValueTemplate keyValueTemplate) EntityInformation
およびRedisKeyValueTemplate
を指定して新しいQueryByExampleRedisExecutor
を作成します。このコンストラクターは、コンバーターから構成されたIndexResolver
を使用します。- パラメーター:
entityInformation
- null であってはなりません。keyValueTemplate
- null であってはなりません。
QueryByExampleRedisExecutor
public QueryByExampleRedisExecutor(EntityInformation<T, ?> entityInformation, RedisKeyValueTemplate keyValueTemplate, IndexResolver indexResolver) - パラメーター:
entityInformation
- null であってはなりません。keyValueTemplate
- null であってはなりません。
メソッドの詳細
setBeanFactory
- 次で指定:
- インターフェース
BeanFactoryAware
のsetBeanFactory
- 例外:
BeansException
setBeanClassLoader
- 次で指定:
- インターフェース
BeanClassLoaderAware
のsetBeanClassLoader
findOne
- 次で指定:
- インターフェース
QueryByExampleExecutor<T>
のfindOne
findAll
- 次で指定:
- インターフェース
ListQueryByExampleExecutor<T>
のfindAll
- 次で指定:
- インターフェース
QueryByExampleExecutor<T>
のfindAll
findAll
- 次で指定:
- インターフェース
ListQueryByExampleExecutor<T>
のfindAll
- 次で指定:
- インターフェース
QueryByExampleExecutor<T>
のfindAll
findAll
- 次で指定:
- インターフェース
QueryByExampleExecutor<T>
のfindAll
count
- 次で指定:
- インターフェース
QueryByExampleExecutor<T>
のcount
exists
- 次で指定:
- インターフェース
QueryByExampleExecutor<T>
のexists
findBy
public <S extends T,R> R findBy(Example<S> example, FunctionSE<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) - 次で指定:
- インターフェース
QueryByExampleExecutor<T>
のfindBy