org.lexevs.dao.database.key.incrementer
Class AbstractKeyIncrementer
java.lang.Object
org.lexevs.dao.database.key.incrementer.AbstractKeyIncrementer
- All Implemented Interfaces:
- PrimaryKeyIncrementer
- Direct Known Subclasses:
- AbstractBigIntKeyIncrementer, RandomGuidKeyIncrementer
public abstract class AbstractKeyIncrementer
- extends java.lang.Object
- implements PrimaryKeyIncrementer
The Class AbstractKeyIncrementer.
- Author:
- Kevin Peterson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractKeyIncrementer
public AbstractKeyIncrementer()
nextKey
public java.lang.String nextKey()
- Description copied from interface:
PrimaryKeyIncrementer
- Next key.
- Specified by:
nextKey
in interface PrimaryKeyIncrementer
- Returns:
- the string
createDataFieldMaxValueIncrementer
protected abstract org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer createDataFieldMaxValueIncrementer()
- Creates the data field max value incrementer.
- Returns:
- the data field max value incrementer
supportsDatabases
public boolean supportsDatabases(DatabaseType databaseType)
- Description copied from interface:
PrimaryKeyIncrementer
- Supports databases.
- Specified by:
supportsDatabases
in interface PrimaryKeyIncrementer
- Parameters:
databaseType
- the database type
- Returns:
- true, if successful
getSupportedDatabaseTypes
protected abstract java.util.List<DatabaseType> getSupportedDatabaseTypes()
- Gets the supported database types.
- Returns:
- the supported database types