|
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.config.RepositoryConfig<T,S>
public abstract class RepositoryConfig<T extends SingleRepositoryConfigInformation<S>,S extends CommonRepositoryConfigInformation>
Class defining access to the repository configuration abstracting the content
of the repositories element in XML namespcae configuration. Defines
default values to populate resulting repository beans with.
| Field Summary | |
|---|---|
static String |
BASE_PACKAGE
|
static String |
DEFAULT_REPOSITORY_IMPL_POSTFIX
|
static String |
QUERY_LOOKUP_STRATEGY
|
static String |
REPOSITORY_FACTORY_CLASS_NAME
|
static String |
REPOSITORY_IMPL_POSTFIX
|
static String |
TRANSACTION_MANAGER_REF
|
| Constructor Summary | |
|---|---|
protected |
RepositoryConfig(Element repositoriesElement,
String defaultRepositoryFactoryBeanClassName)
Creates an instance of RepositoryConfig. |
| Method Summary | |
|---|---|
boolean |
configureManually()
Returns whether to consider manual configuration. |
protected abstract T |
createSingleRepositoryConfigInformationFor(Element element)
Creates a SingleRepositoryConfigInformation for the given
Element. |
String |
getBasePackage()
Returns the base package. |
QueryLookupStrategy.Key |
getQueryLookupStrategyKey()
Returns the strategy finder methods should be resolved. |
Class<?> |
getRepositoryBaseInterface()
Returns the base interface to use |
String |
getRepositoryFactoryBeanClassName()
Returns the configured repository factory class. |
String |
getRepositoryImplementationSuffix()
Returns the suffix to use for implementation bean lookup or class detection. |
Iterable<T> |
getSingleRepositoryConfigInformations()
Returns all SingleRepositoryConfigInformation instances used for
manual configuration. |
Element |
getSource()
Returns the element the repository information is derived from. |
String |
getTransactionManagerRef()
Returns the bean name of the PlatformTransactionManager to be
used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.data.repository.config.GlobalRepositoryConfigInformation |
|---|
getAutoconfigRepositoryInformation |
| Methods inherited from interface org.springframework.data.repository.config.CommonRepositoryConfigInformation |
|---|
getNamedQueriesLocation |
| Field Detail |
|---|
public static final String DEFAULT_REPOSITORY_IMPL_POSTFIX
public static final String QUERY_LOOKUP_STRATEGY
public static final String BASE_PACKAGE
public static final String REPOSITORY_IMPL_POSTFIX
public static final String REPOSITORY_FACTORY_CLASS_NAME
public static final String TRANSACTION_MANAGER_REF
| Constructor Detail |
|---|
protected RepositoryConfig(Element repositoriesElement,
String defaultRepositoryFactoryBeanClassName)
RepositoryConfig.
repositoriesElement - | Method Detail |
|---|
public Element getSource()
CommonRepositoryConfigInformation
getSource in interface CommonRepositoryConfigInformationpublic boolean configureManually()
GlobalRepositoryConfigInformationGlobalRepositoryConfigInformation.getSingleRepositoryConfigInformations() to
lookup configuration information for individual repository beans.
configureManually in interface GlobalRepositoryConfigInformation<T extends SingleRepositoryConfigInformation<S>>public QueryLookupStrategy.Key getQueryLookupStrategyKey()
CommonRepositoryConfigInformation
getQueryLookupStrategyKey in interface CommonRepositoryConfigInformationpublic String getBasePackage()
CommonRepositoryConfigInformation
getBasePackage in interface CommonRepositoryConfigInformationpublic String getRepositoryFactoryBeanClassName()
CommonRepositoryConfigInformation
getRepositoryFactoryBeanClassName in interface CommonRepositoryConfigInformationpublic String getRepositoryImplementationSuffix()
CommonRepositoryConfigInformation
getRepositoryImplementationSuffix in interface CommonRepositoryConfigInformationpublic String getTransactionManagerRef()
CommonRepositoryConfigInformationPlatformTransactionManager to be
used. Returns null if no reference has been configured
explicitly.
getTransactionManagerRef in interface CommonRepositoryConfigInformationpublic Iterable<T> getSingleRepositoryConfigInformations()
GlobalRepositoryConfigInformationSingleRepositoryConfigInformation instances used for
manual configuration.
getSingleRepositoryConfigInformations in interface GlobalRepositoryConfigInformation<T extends SingleRepositoryConfigInformation<S>>public Class<?> getRepositoryBaseInterface()
GlobalRepositoryConfigInformation
getRepositoryBaseInterface in interface GlobalRepositoryConfigInformation<T extends SingleRepositoryConfigInformation<S>>protected abstract T createSingleRepositoryConfigInformationFor(Element element)
SingleRepositoryConfigInformation for the given
Element.
element -
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||