|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
T
- the type of the repositorypublic abstract class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends java.io.Serializable>
Adapter for Springs FactoryBean
interface to allow easy setup of repository factories via Spring
configuration.
Constructor Summary | |
---|---|
RepositoryFactoryBeanSupport()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected abstract RepositoryFactorySupport |
createRepositoryFactory()
Create the actual RepositoryFactorySupport instance. |
EntityInformation<S,ID> |
getEntityInformation()
Returns EntityInformation the repository factory is using. |
T |
getObject()
|
java.lang.Class<? extends T> |
getObjectType()
|
java.lang.Class<? extends T> |
getRepositoryInterface()
Returns the interface of the Repository the factory will create. |
boolean |
isSingleton()
|
void |
setCustomImplementation(java.lang.Object customImplementation)
Setter to inject a custom repository implementation. |
void |
setNamedQueries(NamedQueries namedQueries)
Setter to inject a NamedQueries instance. |
void |
setQueryLookupStrategyKey(QueryLookupStrategy.Key queryLookupStrategyKey)
Set the QueryLookupStrategy.Key to be used. |
void |
setRepositoryInterface(java.lang.Class<? extends T> repositoryInterface)
Setter to inject the repository interface to implement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryFactoryBeanSupport()
Method Detail |
---|
public void setRepositoryInterface(java.lang.Class<? extends T> repositoryInterface)
repositoryInterface
- the repository interface to setpublic void setQueryLookupStrategyKey(QueryLookupStrategy.Key queryLookupStrategyKey)
QueryLookupStrategy.Key
to be used.
queryLookupStrategyKey
- public void setCustomImplementation(java.lang.Object customImplementation)
customImplementation
- public void setNamedQueries(NamedQueries namedQueries)
NamedQueries
instance.
namedQueries
- the namedQueries to setpublic EntityInformation<S,ID> getEntityInformation()
RepositoryFactoryInformation
EntityInformation
the repository factory is using.
getEntityInformation
in interface RepositoryFactoryInformation<S,ID extends java.io.Serializable>
public java.lang.Class<? extends T> getRepositoryInterface()
RepositoryFactoryInformation
Repository
the factory will create.
getRepositoryInterface
in interface RepositoryFactoryInformation<S,ID extends java.io.Serializable>
public T getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<T extends Repository<S,ID>>
public java.lang.Class<? extends T> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<T extends Repository<S,ID>>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<T extends Repository<S,ID>>
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected abstract RepositoryFactorySupport createRepositoryFactory()
RepositoryFactorySupport
instance.
|
Spring Data Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |