Class MaxValueIncrementerFactoryBean
java.lang.Object
org.kuali.rice.krad.data.platform.MaxValueIncrementerFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer>,org.springframework.beans.factory.InitializingBean
public class MaxValueIncrementerFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer>, org.springframework.beans.factory.InitializingBean
A factory bean for putting a
DataFieldMaxValueIncrementer in the Spring context.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGets theDataSourcefor which to retrieve the incrementer.Gets the name of the incrementer.org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementerClass<org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer> booleanvoidsetDataSource(DataSource dataSource) Setter for theDataSource.voidsetIncrementerName(String incrementerName) Setter for the incrementer name.
-
Constructor Details
-
MaxValueIncrementerFactoryBean
public MaxValueIncrementerFactoryBean()
-
-
Method Details
-
getObject
public org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer getObject() throws Exception- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer>- Throws:
Exception
-
getObjectType
public Class<org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer> getObjectType()- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer>
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getDataSource
Gets theDataSourcefor which to retrieve the incrementer.- Returns:
- the
DataSourcefor which to retrieve the incrementer.
-
setDataSource
Setter for theDataSource.- Parameters:
dataSource- theDataSourcefor which to retrieve the incrementer.
-
getIncrementerName
Gets the name of the incrementer.- Returns:
- the name of the incrementer.
-
setIncrementerName
Setter for the incrementer name.- Parameters:
incrementerName- the name of the incrementer.
-