org.lexevs.dao.database.key.incrementer
Class AbstractKeyIncrementer

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.key.incrementer.PrimaryKeyIncrementer
PrimaryKeyIncrementer.KeyType
 
Constructor Summary
AbstractKeyIncrementer()
           
 
Method Summary
protected abstract  org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer createDataFieldMaxValueIncrementer()
          Creates the data field max value incrementer.
protected abstract  java.util.List<DatabaseType> getSupportedDatabaseTypes()
          Gets the supported database types.
 java.lang.String nextKey()
          Next key.
 boolean supportsDatabases(DatabaseType databaseType)
          Supports databases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.lexevs.dao.database.key.incrementer.PrimaryKeyIncrementer
destroy, getKeyLength, getKeyType, getName, initialize, stringValue, valueOf
 

Constructor Detail

AbstractKeyIncrementer

public AbstractKeyIncrementer()
Method Detail

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

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.