Package jakarta.nosql.mapping.document
Interface DocumentRepositoryProducer
-
public interface DocumentRepositoryProducer
The producer ofRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T,K,R extends Repository<T,K>>
Rget(Class<R> repositoryClass, DocumentCollectionManager manager)
Produces a Repository class from repository class andDocumentCollectionManager
<T,K,R extends Repository<T,K>>
Rget(Class<R> repositoryClass, DocumentTemplate template)
Produces a Repository class from repository class andDocumentTemplate
-
-
-
Method Detail
-
get
<T,K,R extends Repository<T,K>> R get(Class<R> repositoryClass, DocumentCollectionManager manager)
Produces a Repository class from repository class andDocumentCollectionManager
- Type Parameters:
T
- the entity of repositoryK
- the K of the entityR
- the repository type- Parameters:
repositoryClass
- the repository classmanager
- the manager- Returns:
- a
Repository
interface - Throws:
NullPointerException
- when there is null parameter
-
get
<T,K,R extends Repository<T,K>> R get(Class<R> repositoryClass, DocumentTemplate template)
Produces a Repository class from repository class andDocumentTemplate
- Type Parameters:
T
- the entity of repositoryK
- the K of the entityR
- the repository type- Parameters:
repositoryClass
- the repository classtemplate
- the template- Returns:
- a
Repository
interface - Throws:
NullPointerException
- when there is null parameter
-
-