public class PrimaryKeyIncrementerFactory
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean
Modifier and Type | Class and Description |
---|---|
static class |
PrimaryKeyIncrementerFactory.KeyIncrementerThreadLocal |
Modifier and Type | Field and Description |
---|---|
static PrimaryKeyIncrementerFactory.KeyIncrementerThreadLocal |
THREAD_LOCAL |
Constructor and Description |
---|
PrimaryKeyIncrementerFactory() |
Modifier and Type | Method and Description |
---|---|
DatabaseType |
getDatabaseType()
Gets the database type.
|
java.lang.Object |
getObject() |
java.lang.Class<?> |
getObjectType() |
java.util.List<PrimaryKeyIncrementer> |
getPrimaryKeyIncrementers()
Gets the primary key incrementers.
|
SystemVariables |
getSystemVariables()
Gets the system variables.
|
boolean |
isSingleton() |
void |
setDatabaseType(DatabaseType databaseType)
Sets the database type.
|
void |
setPrimaryKeyIncrementers(java.util.List<PrimaryKeyIncrementer> primaryKeyIncrementers)
Sets the primary key incrementers.
|
void |
setSystemVariables(SystemVariables systemVariables)
Sets the system variables.
|
public static PrimaryKeyIncrementerFactory.KeyIncrementerThreadLocal THREAD_LOCAL
public java.lang.Object getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
public DatabaseType getDatabaseType()
public void setDatabaseType(DatabaseType databaseType)
databaseType
- the new database typepublic void setSystemVariables(SystemVariables systemVariables)
systemVariables
- the new system variablespublic SystemVariables getSystemVariables()
public void setPrimaryKeyIncrementers(java.util.List<PrimaryKeyIncrementer> primaryKeyIncrementers)
primaryKeyIncrementers
- the new primary key incrementerspublic java.util.List<PrimaryKeyIncrementer> getPrimaryKeyIncrementers()