クラス Repositories
java.lang.ObjectSE
org.springframework.data.repository.support.Repositories
- 実装されたすべてのインターフェース:
IterableSE<ClassSE<?>>
ListableBeanFactory
から取得したリポジトリインスタンスにアクセスするためのラッパークラス。- 作成者:
- Oliver Gierke, Thomas Darimont, Thomas Eizinger, Christoph Strobl, Alessandro Nistico, Johannes Englmeier
コンストラクターの概要
コンストラクターコンストラクター説明Repositories
(ListableBeanFactory factory) 指定されたListableBeanFactory
からリポジトリインスタンスとメタ情報を検索して、新しいRepositories
インスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明<T,
S> EntityInformation<T, S> getEntityInformationFor
(ClassSE<?> domainClass) 指定されたドメインクラスのEntityInformation
を返します。PersistentEntity<?,
?> getPersistentEntity
(ClassSE<?> domainClass) 指定されたドメインクラスのPersistentEntity
を返します。getQueryMethodsFor
(ClassSE<?> domainClass) 指定されたドメインクラスを管理するリポジトリに含まれるQueryMethod
を返します。getRepositoryFor
(ClassSE<?> domainClass) 指定されたドメインクラスを管理するリポジトリを返します。getRepositoryInformation
(ClassSE<?> repositoryInterface) 指定されたリポジトリインターフェースのRepositoryInformation
を返します。getRepositoryInformationFor
(ClassSE<?> domainClass) 指定されたドメインクラスのRepositoryInformation
を返します。getRequiredRepositoryInformation
(ClassSE<?> domainType) 指定されたドメイン型のRepositoryInformation
を返します。boolean
hasRepositoryFor
(ClassSE<?> domainClass) 指定されたドメインクラスのインスタンスを管理するためにリポジトリインスタンスが登録されているかどうかを返します。IteratorSE<ClassSE<?>>
iterator()
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース java.lang.IterableSE から継承されたメソッド
forEachSE, spliterator
コンストラクターの詳細
Repositories
指定されたListableBeanFactory
からリポジトリインスタンスとメタ情報を検索して、新しいRepositories
インスタンスを作成します。- パラメーター:
factory
- null であってはなりません。
メソッドの詳細
hasRepositoryFor
指定されたドメインクラスのインスタンスを管理するためにリポジトリインスタンスが登録されているかどうかを返します。指定されたdomainClass
は、必要に応じて実際のユーザークラスにアンラップされます。- パラメーター:
domainClass
- null であってはなりません。- 戻り値:
getRepositoryFor
指定されたドメインクラスを管理するリポジトリを返します。指定されたdomainClass
は、必要に応じて実際のユーザークラスにアンラップされます。- パラメーター:
domainClass
- null であってはなりません。- 戻り値:
getEntityInformationFor
指定されたドメインクラスのEntityInformation
を返します。指定されたdomainClass
は、必要に応じて実際のユーザークラスにアンラップされます。- パラメーター:
domainClass
- null であってはなりません。- 戻り値:
- 関連事項:
getRepositoryInformationFor
指定されたドメインクラスのRepositoryInformation
を返します。指定されたdomainClass
は、必要に応じて実際のユーザークラスにアンラップされます。- パラメーター:
domainClass
- null であってはなりません。- 戻り値:
- 指定されたドメインクラスの
RepositoryInformation
、またはこのドメインクラスにリポジトリが登録されていない場合は Optional#empty()。 - 関連事項:
getRequiredRepositoryInformation
指定されたドメイン型のRepositoryInformation
を返します。指定されたdomainType
は、必要に応じて実際のユーザークラスにアンラップされます。- パラメーター:
domainType
- null であってはなりません。- 戻り値:
- 指定されたドメイン型の
RepositoryInformation
。 - 例外:
IllegalArgumentExceptionSE
- 指定されたドメイン型のRepositoryInformation
が見つからなかった場合。- 関連事項:
getRepositoryInformation
指定されたリポジトリインターフェースのRepositoryInformation
を返します。- パラメーター:
repositoryInterface
- null であってはなりません。- 戻り値:
- 指定されたリポジトリインターフェースの
RepositoryInformation
または null 指定されたインターフェースに登録されたリポジトリインスタンスはありません。 - 導入:
- 1.12
getPersistentEntity
指定されたドメインクラスのPersistentEntity
を返します。指定されたドメインクラスを格納するモジュールがマッピングサブシステムをサポートしていない場合、null を返す可能性があります。指定されたdomainClass
は、必要に応じて実際のユーザークラスにアンラップされます。- パラメーター:
domainClass
- null であってはなりません。- 戻り値:
- 指定されたドメインクラスの
PersistentEntity
。ドメインクラスにリポジトリが登録されていない場合、またはリポジトリがMappingContext
実装によってサポートされていない場合は null。 - 関連事項:
getQueryMethodsFor
指定されたドメインクラスを管理するリポジトリに含まれるQueryMethod
を返します。指定されたdomainClass
は、必要に応じて実際のユーザークラスにアンラップされます。- パラメーター:
domainClass
- null であってはなりません。- 戻り値:
- 関連事項:
iterator
- 次で指定:
- インターフェース
IterableSE<ClassSE<?>>
のiterator