Constructor and Description |
---|
Repositories(ListableBeanFactory factory)
Creates a new
Repositories instance by looking up the repository instances and meta information from the
given ListableBeanFactory . |
Modifier and Type | Method and Description |
---|---|
<T> CrudInvoker<T> |
getCrudInvoker(Class<T> domainClass) |
<T,S extends Serializable> |
getEntityInformationFor(Class<?> domainClass)
Returns the
EntityInformation for the given domain class. |
PersistentEntity<?,?> |
getPersistentEntity(Class<?> domainClass)
Returns the
PersistentEntity for the given domain class. |
List<QueryMethod> |
getQueryMethodsFor(Class<?> domainClass)
Returns the
QueryMethod s contained in the repository managing the given domain class. |
Object |
getRepositoryFor(Class<?> domainClass)
Returns the repository managing the given domain class.
|
RepositoryInformation |
getRepositoryInformationFor(Class<?> domainClass)
Returns the
RepositoryInformation 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() |
public Repositories(ListableBeanFactory factory)
Repositories
instance by looking up the repository instances and meta information from the
given ListableBeanFactory
.factory
- must not be null.public boolean hasRepositoryFor(Class<?> domainClass)
domainClass
- must not be null.public Object 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)
RepositoryInformation
for the given domain class.domainClass
- must not be null.RepositoryInformation
for the given domain class or null if no repository registered
for this domain class.public PersistentEntity<?,?> getPersistentEntity(Class<?> domainClass)
PersistentEntity
for the given domain class. Might return null in case the module
storing the given domain class does not support the mapping subsystem.domainClass
- must not be null.PersistentEntity
for the given domain class or null if no repository is registered
for the domain class or the repository is not backed by a MappingContext
implementation.public List<QueryMethod> getQueryMethodsFor(Class<?> domainClass)
QueryMethod
s contained in the repository managing the given domain class.domainClass
- must not be null.public <T> CrudInvoker<T> getCrudInvoker(Class<T> domainClass)
Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.