public class DefaultDataFieldMaxValueIncrementerFactory extends Object implements DataFieldMaxValueIncrementerFactory
DataFieldMaxValueIncrementerFactory
interface. Valid database types are given by the DatabaseType
enum.DatabaseType
Constructor and Description |
---|
DefaultDataFieldMaxValueIncrementerFactory(DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
org.springframework.jdbc.support.incrementer.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.
|
public DefaultDataFieldMaxValueIncrementerFactory(DataSource dataSource)
public void setIncrementerColumnName(String incrementerColumnName)
incrementerColumnName
- the primary key column name to setpublic org.springframework.jdbc.support.incrementer.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 namepublic boolean isSupportedIncrementerType(String incrementerType)
DataFieldMaxValueIncrementerFactory
isSupportedIncrementerType
in interface DataFieldMaxValueIncrementerFactory
public String[] getSupportedIncrementerTypes()
DataFieldMaxValueIncrementerFactory
getSupportedIncrementerTypes
in interface DataFieldMaxValueIncrementerFactory
Copyright © 2014 Pivotal. All rights reserved.