org.lexevs.dao.database.access.factory
Class DaoFactory<T extends LexGridSchemaVersionAwareDao>

java.lang.Object
  extended by org.lexevs.dao.database.access.factory.DaoFactory<T>
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class DaoFactory<T extends LexGridSchemaVersionAwareDao>
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

A factory for creating Dao objects.


Constructor Summary
DaoFactory()
           
 
Method Summary
 void afterPropertiesSet()
           
 LexGridSchemaVersion getLexGridSchemaVersion()
          Gets the lex grid schema version.
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 java.util.List<T> getVersionableDaos()
          Gets the versionable daos.
 boolean isSingleton()
           
 void setLexGridSchemaVersion(LexGridSchemaVersion lexGridSchemaVersion)
          Sets the lex grid schema version.
 void setVersionableDaos(java.util.List<T> versionableDaos)
          Sets the versionable daos.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoFactory

public DaoFactory()
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

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

getVersionableDaos

public java.util.List<T> getVersionableDaos()
Gets the versionable daos.

Returns:
the versionable daos

setVersionableDaos

public void setVersionableDaos(java.util.List<T> versionableDaos)
Sets the versionable daos.

Parameters:
versionableDaos - the new versionable daos

setLexGridSchemaVersion

public void setLexGridSchemaVersion(LexGridSchemaVersion lexGridSchemaVersion)
Sets the lex grid schema version.

Parameters:
lexGridSchemaVersion - the new lex grid schema version

getLexGridSchemaVersion

public LexGridSchemaVersion getLexGridSchemaVersion()
Gets the lex grid schema version.

Returns:
the lex grid schema version

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.