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

java.lang.Object
  extended by org.lexevs.dao.database.key.incrementer.AbstractKeyIncrementer
      extended by org.lexevs.dao.database.key.incrementer.AbstractBigIntKeyIncrementer
          extended by org.lexevs.dao.database.key.incrementer.MysqlTableBasedBigIntKeyIncrementer
All Implemented Interfaces:
PrimaryKeyIncrementer

public class MysqlTableBasedBigIntKeyIncrementer
extends AbstractBigIntKeyIncrementer

The Class MysqlTableBasedBigIntKeyIncrementer.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.key.incrementer.PrimaryKeyIncrementer
PrimaryKeyIncrementer.KeyType
 
Constructor Summary
MysqlTableBasedBigIntKeyIncrementer()
           
 
Method Summary
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.
 
Methods inherited from class org.lexevs.dao.database.key.incrementer.AbstractBigIntKeyIncrementer
getKeyLength, getKeyType, getName, stringValue, valueOf
 
Methods inherited from class org.lexevs.dao.database.key.incrementer.AbstractKeyIncrementer
nextKey, supportsDatabases
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MysqlTableBasedBigIntKeyIncrementer

public MysqlTableBasedBigIntKeyIncrementer()
Method Detail

createDataFieldMaxValueIncrementer

protected org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer createDataFieldMaxValueIncrementer()
Description copied from class: AbstractKeyIncrementer
Creates the data field max value incrementer.

Specified by:
createDataFieldMaxValueIncrementer in class AbstractKeyIncrementer
Returns:
the data field max value incrementer

destroy

public void destroy()
Description copied from interface: PrimaryKeyIncrementer
Destroy.


initialize

public void initialize()
Description copied from interface: PrimaryKeyIncrementer
Initialize.


getSupportedDatabaseTypes

protected java.util.List<DatabaseType> getSupportedDatabaseTypes()
Description copied from class: AbstractKeyIncrementer
Gets the supported database types.

Specified by:
getSupportedDatabaseTypes in class AbstractKeyIncrementer
Returns:
the supported database types

setDatabaseUtility

public void setDatabaseUtility(DatabaseUtility databaseUtility)
Sets the database utility.

Parameters:
databaseUtility - the new database utility

getDatabaseUtility

public DatabaseUtility getDatabaseUtility()
Gets the database utility.

Returns:
the database utility

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)
Sets the data source.

Parameters:
dataSource - the new data source

getDataSource

public javax.sql.DataSource getDataSource()
Gets the data source.

Returns:
the data source

setCacheSize

public void setCacheSize(int cacheSize)
Sets the cache size.

Parameters:
cacheSize - the new cache size

getCacheSize

public int getCacheSize()
Gets the cache size.

Returns:
the cache size

getPrefixResolver

public PrefixResolver getPrefixResolver()
Gets the prefix resolver.

Returns:
the prefix resolver

setPrefixResolver

public void setPrefixResolver(PrefixResolver prefixResolver)
Sets the prefix resolver.

Parameters:
prefixResolver - the new prefix resolver

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.