|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.item.database.support.DefaultDataFieldMaxValueIncrementerFactory
public class DefaultDataFieldMaxValueIncrementerFactory
Default implementation of the DataFieldMaxValueIncrementerFactory
interface. Valid database types are given by the DatabaseType
enum.
DatabaseType
Constructor Summary | |
---|---|
DefaultDataFieldMaxValueIncrementerFactory(DataSource dataSource)
|
Method Summary | |
---|---|
DataFieldMaxValueIncrementer |
getIncrementer(String incrementerType,
String incrementerName)
Return the DataFieldMaxValueIncrementer for the provided database type. |
String[] |
getSupportedIncrementerTypes()
Returns the list of supported database incrementer types |
boolean |
isSupportedIncrementerType(String incrementerType)
Returns boolean indicated whether or not the provided string is supported by this factory. |
void |
setIncrementerColumnName(String incrementerColumnName)
Public setter for the column name (defaults to "ID") in the incrementer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDataFieldMaxValueIncrementerFactory(DataSource dataSource)
Method Detail |
---|
public void setIncrementerColumnName(String incrementerColumnName)
incrementerColumnName
- the primary key column name to setpublic DataFieldMaxValueIncrementer getIncrementer(String incrementerType, String incrementerName)
DataFieldMaxValueIncrementerFactory
DataFieldMaxValueIncrementer
for the provided database type.
getIncrementer
in interface DataFieldMaxValueIncrementerFactory
incrementerType
- string represented database typeincrementerName
- incrementer name to create. In many cases this may be the
sequence name
public boolean isSupportedIncrementerType(String incrementerType)
DataFieldMaxValueIncrementerFactory
isSupportedIncrementerType
in interface DataFieldMaxValueIncrementerFactory
public String[] getSupportedIncrementerTypes()
DataFieldMaxValueIncrementerFactory
getSupportedIncrementerTypes
in interface DataFieldMaxValueIncrementerFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |