|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.repository.support.Repositories
public class Repositories
Wrapper class to access repository instances obtained from a ListableBeanFactory.
| Constructor Summary | |
|---|---|
Repositories(ListableBeanFactory factory)
Creates a new Repositories instance by looking up the repository instances and meta information from the
given ListableBeanFactory. |
|
| Method Summary | ||
|---|---|---|
|
getEntityInformationFor(Class<?> domainClass)
Returns the EntityInformation for the given domain class. |
|
List<QueryMethod> |
getQueryMethodsFor(Class<?> domainClass)
Returns the QueryMethods contained in the repository managing the given domain class. |
|
|
getRepositoryFor(Class<?> domainClass)
Returns the repository managing the given domain class. |
|
RepositoryInformation |
getRepositoryInformationFor(Class<?> domainClass)
Returns the EntityInformation for the given domain class. |
|
boolean |
hasRepositoryFor(Class<?> domainClass)
Returns whether we have a repository instance registered to manage instances of the given domain class. |
|
Iterator<Class<?>> |
iterator()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Repositories(ListableBeanFactory factory)
Repositories instance by looking up the repository instances and meta information from the
given ListableBeanFactory.
factory - must not be null.| Method Detail |
|---|
public boolean hasRepositoryFor(Class<?> domainClass)
domainClass - must not be null.
public <T,S extends Serializable> CrudRepository<T,S> getRepositoryFor(Class<?> domainClass)
domainClass - must not be null.
public <T,S extends Serializable> EntityInformation<T,S> getEntityInformationFor(Class<?> domainClass)
EntityInformation for the given domain class.
domainClass - must not be null.
public RepositoryInformation getRepositoryInformationFor(Class<?> domainClass)
EntityInformation for the given domain class.
domainClass - must not be null.
EntityInformation for the given domain class or null if no repository registered for
this domain class.public List<QueryMethod> getQueryMethodsFor(Class<?> domainClass)
QueryMethods contained in the repository managing the given domain class.
domainClass - must not be null.
public Iterator<Class<?>> iterator()
iterator in interface Iterable<Class<?>>
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||