Spring Data Commons

org.springframework.data.repository.config
Class ParentDelegatingRepositoryConfigInformation<T extends CommonRepositoryConfigInformation>

java.lang.Object
  extended by org.springframework.data.repository.config.ParentDelegatingRepositoryConfigInformation<T>
All Implemented Interfaces:
CommonRepositoryConfigInformation, SingleRepositoryConfigInformation<T>
Direct Known Subclasses:
AutomaticRepositoryConfigInformation, ManualRepositoryConfigInformation

public abstract class ParentDelegatingRepositoryConfigInformation<T extends CommonRepositoryConfigInformation>
extends Object
implements SingleRepositoryConfigInformation<T>

Base class for SingleRepositoryConfigInformation implementations. So these implementations will capture information for XML elements manually configuring a single repository bean.

Author:
Oliver Gierke

Constructor Summary
ParentDelegatingRepositoryConfigInformation(T parent)
          Creates a new ParentDelegatingRepositoryConfigInformation with the given CommonRepositoryConfigInformation as parent.
 
Method Summary
 boolean autodetectCustomImplementation()
          Returns whether to try to autodetect a custom implementation.
 String getBasePackage()
          Returns the base package.
 String getCustomImplementationRef()
          Returns the bean reference to the custom repository implementation.
 String getImplementationBeanName()
          Returns the bean name a possibly found custom implementation shall be registered under.
 String getImplementationClassName()
          Returns the class name of a possible custom repository implementation class to detect.
 String getNamedQueriesLocation()
          Returns the location of the properties file to contain named queries.
protected  T getParent()
           
 QueryLookupStrategy.Key getQueryLookupStrategyKey()
          Returns the strategy finder methods should be resolved.
 String getRepositoryFactoryBeanClassName()
          Returns the configured repository factory class.
 String getRepositoryImplementationSuffix()
          Returns the suffix to use for implementation bean lookup or class detection.
 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.SingleRepositoryConfigInformation
getBeanId, getInterfaceName
 

Constructor Detail

ParentDelegatingRepositoryConfigInformation

public ParentDelegatingRepositoryConfigInformation(T parent)
Creates a new ParentDelegatingRepositoryConfigInformation with the given CommonRepositoryConfigInformation as parent.

Parameters:
parent -
Method Detail

getParent

protected T getParent()

getBasePackage

public String getBasePackage()
Description copied from interface: CommonRepositoryConfigInformation
Returns the base package.

Specified by:
getBasePackage in interface CommonRepositoryConfigInformation
Returns:

getImplementationClassName

public String getImplementationClassName()
Description copied from interface: SingleRepositoryConfigInformation
Returns the class name of a possible custom repository implementation class to detect.

Specified by:
getImplementationClassName in interface SingleRepositoryConfigInformation<T extends CommonRepositoryConfigInformation>
Returns:

getImplementationBeanName

public String getImplementationBeanName()
Description copied from interface: SingleRepositoryConfigInformation
Returns the bean name a possibly found custom implementation shall be registered under.

Specified by:
getImplementationBeanName in interface SingleRepositoryConfigInformation<T extends CommonRepositoryConfigInformation>
Returns:

autodetectCustomImplementation

public boolean autodetectCustomImplementation()
Description copied from interface: SingleRepositoryConfigInformation
Returns whether to try to autodetect a custom implementation.

Specified by:
autodetectCustomImplementation in interface SingleRepositoryConfigInformation<T extends CommonRepositoryConfigInformation>
Returns:

getCustomImplementationRef

public String getCustomImplementationRef()
Description copied from interface: SingleRepositoryConfigInformation
Returns the bean reference to the custom repository implementation.

Specified by:
getCustomImplementationRef in interface SingleRepositoryConfigInformation<T extends CommonRepositoryConfigInformation>
Returns:

getSource

public Element getSource()
Description copied from interface: CommonRepositoryConfigInformation
Returns the element the repository information is derived from.

Specified by:
getSource in interface CommonRepositoryConfigInformation
Returns:

getRepositoryImplementationSuffix

public String getRepositoryImplementationSuffix()
Description copied from interface: CommonRepositoryConfigInformation
Returns the suffix to use for implementation bean lookup or class detection.

Specified by:
getRepositoryImplementationSuffix in interface CommonRepositoryConfigInformation
Returns:

getRepositoryFactoryBeanClassName

public String getRepositoryFactoryBeanClassName()
Description copied from interface: CommonRepositoryConfigInformation
Returns the configured repository factory class.

Specified by:
getRepositoryFactoryBeanClassName in interface CommonRepositoryConfigInformation
Returns:

getTransactionManagerRef

public String getTransactionManagerRef()
Description copied from interface: CommonRepositoryConfigInformation
Returns the bean name of the PlatformTransactionManager to be used. Returns null if no reference has been configured explicitly.

Specified by:
getTransactionManagerRef in interface CommonRepositoryConfigInformation
Returns:

getQueryLookupStrategyKey

public QueryLookupStrategy.Key getQueryLookupStrategyKey()
Description copied from interface: CommonRepositoryConfigInformation
Returns the strategy finder methods should be resolved.

Specified by:
getQueryLookupStrategyKey in interface CommonRepositoryConfigInformation
Returns:

getNamedQueriesLocation

public String getNamedQueriesLocation()
Description copied from interface: CommonRepositoryConfigInformation
Returns the location of the properties file to contain named queries.

Specified by:
getNamedQueriesLocation in interface CommonRepositoryConfigInformation
Returns:

Spring Data Commons

Copyright © 2012. All Rights Reserved.