|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepositoryFactory
An abstract factory used by RepositoryRegistry to create instances of
repositories.
| Method Summary | ||
|---|---|---|
|
getRepository(Class<T> c)
Create a repository for objects of the given class. |
|
|
getRepository(Collection<T> coll)
Create an adapter that present the given collection as a repository. |
|
| Method Detail |
|---|
<I extends Serializable,T extends Entity<I>> Repository<I,T> getRepository(Class<T> c)
I - The class of the id of the objects contained in the constructed repositoryT - The class of the objects contained in the constructed repositoryc - The class object of the objects contained in the constructed repository
<I extends Serializable,T extends Entity<I>> Repository<I,T> getRepository(Collection<T> coll)
I - The class of the id of the objects contained in the constructed repositoryT - The class of the objects contained in the constructed repositorycoll - The collection that will be adapted as a repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||