public class SequenceBasedBigIntKeyIncrementer extends AbstractBigIntKeyIncrementer
PrimaryKeyIncrementer.KeyType
Constructor and Description |
---|
SequenceBasedBigIntKeyIncrementer() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer |
createDataFieldMaxValueIncrementer()
Creates the data field max value incrementer.
|
protected void |
createSequence(java.lang.String sequenceName)
Creates the sequence.
|
void |
destroy()
Destroy.
|
protected void |
dropSequence(java.lang.String sequenceName)
Drop sequence.
|
DatabaseType |
getDatabaseType()
Gets the database type.
|
javax.sql.DataSource |
getDataSource()
Gets the data source.
|
PrefixResolver |
getPrefixResolver()
Gets the prefix resolver.
|
protected java.lang.String |
getSequenceName()
Gets the sequence name.
|
protected java.util.List<DatabaseType> |
getSupportedDatabaseTypes()
Gets the supported database types.
|
void |
initialize()
Initialize.
|
void |
setDatabaseType(DatabaseType databaseType)
Sets the database type.
|
void |
setDataSource(javax.sql.DataSource dataSource)
Sets the data source.
|
void |
setPrefixResolver(PrefixResolver prefixResolver)
Sets the prefix resolver.
|
getKeyLength, getKeyType, getName, stringValue, valueOf
nextKey, supportsDatabases
protected org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer createDataFieldMaxValueIncrementer()
AbstractKeyIncrementer
createDataFieldMaxValueIncrementer
in class AbstractKeyIncrementer
protected java.lang.String getSequenceName()
public void destroy()
PrimaryKeyIncrementer
public void initialize()
PrimaryKeyIncrementer
protected void createSequence(java.lang.String sequenceName)
sequenceName
- the sequence nameprotected void dropSequence(java.lang.String sequenceName)
sequenceName
- the sequence nameprotected java.util.List<DatabaseType> getSupportedDatabaseTypes()
AbstractKeyIncrementer
getSupportedDatabaseTypes
in class AbstractKeyIncrementer
public void setDataSource(javax.sql.DataSource dataSource)
dataSource
- the new data sourcepublic javax.sql.DataSource getDataSource()
public DatabaseType getDatabaseType()
public void setDatabaseType(DatabaseType databaseType)
databaseType
- the new database typepublic PrefixResolver getPrefixResolver()
public void setPrefixResolver(PrefixResolver prefixResolver)
prefixResolver
- the new prefix resolver