public class MysqlTableBasedBigIntKeyIncrementer extends AbstractBigIntKeyIncrementer
PrimaryKeyIncrementer.KeyType
Constructor and Description |
---|
MysqlTableBasedBigIntKeyIncrementer() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer |
createDataFieldMaxValueIncrementer()
Creates the data field max value incrementer.
|
void |
destroy()
Destroy.
|
int |
getCacheSize()
Gets the cache size.
|
DatabaseUtility |
getDatabaseUtility()
Gets the database utility.
|
javax.sql.DataSource |
getDataSource()
Gets the data source.
|
PrefixResolver |
getPrefixResolver()
Gets the prefix resolver.
|
protected java.util.List<DatabaseType> |
getSupportedDatabaseTypes()
Gets the supported database types.
|
void |
initialize()
Initialize.
|
void |
setCacheSize(int cacheSize)
Sets the cache size.
|
void |
setDatabaseUtility(DatabaseUtility databaseUtility)
Sets the database utility.
|
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
public void destroy()
PrimaryKeyIncrementer
public void initialize()
PrimaryKeyIncrementer
protected java.util.List<DatabaseType> getSupportedDatabaseTypes()
AbstractKeyIncrementer
getSupportedDatabaseTypes
in class AbstractKeyIncrementer
public void setDatabaseUtility(DatabaseUtility databaseUtility)
databaseUtility
- the new database utilitypublic DatabaseUtility getDatabaseUtility()
public void setDataSource(javax.sql.DataSource dataSource)
dataSource
- the new data sourcepublic javax.sql.DataSource getDataSource()
public void setCacheSize(int cacheSize)
cacheSize
- the new cache sizepublic int getCacheSize()
public PrefixResolver getPrefixResolver()
public void setPrefixResolver(PrefixResolver prefixResolver)
prefixResolver
- the new prefix resolver