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

java.lang.Object
  extended by org.lexevs.dao.database.key.incrementer.PrimaryKeyIncrementerFactory
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean

public class PrimaryKeyIncrementerFactory
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean

A factory for creating PrimaryKeyIncrementer objects.


Nested Class Summary
static class PrimaryKeyIncrementerFactory.KeyIncrementerThreadLocal
           
 
Field Summary
static PrimaryKeyIncrementerFactory.KeyIncrementerThreadLocal THREAD_LOCAL
           
 
Constructor Summary
PrimaryKeyIncrementerFactory()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THREAD_LOCAL

public static PrimaryKeyIncrementerFactory.KeyIncrementerThreadLocal THREAD_LOCAL
Constructor Detail

PrimaryKeyIncrementerFactory

public PrimaryKeyIncrementerFactory()
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

getDatabaseType

public DatabaseType getDatabaseType()
Gets the database type.

Returns:
the database type

setDatabaseType

public void setDatabaseType(DatabaseType databaseType)
Sets the database type.

Parameters:
databaseType - the new database type

setSystemVariables

public void setSystemVariables(SystemVariables systemVariables)
Sets the system variables.

Parameters:
systemVariables - the new system variables

getSystemVariables

public SystemVariables getSystemVariables()
Gets the system variables.

Returns:
the system variables

setPrimaryKeyIncrementers

public void setPrimaryKeyIncrementers(java.util.List<PrimaryKeyIncrementer> primaryKeyIncrementers)
Sets the primary key incrementers.

Parameters:
primaryKeyIncrementers - the new primary key incrementers

getPrimaryKeyIncrementers

public java.util.List<PrimaryKeyIncrementer> getPrimaryKeyIncrementers()
Gets the primary key incrementers.

Returns:
the primary key incrementers

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.