org.lexevs.dao.database.access
Class DaoManager

java.lang.Object
  extended by org.lexevs.dao.database.access.DaoManager

public class DaoManager
extends java.lang.Object

The Class DaoManager.

Author:
Kevin Peterson

Field Summary
 LexGridSchemaVersion currentVersion
           
 
Constructor Summary
DaoManager()
           
 
Method Summary
protected
<T extends LexGridSchemaVersionAwareDao>
T
doGetDao(java.lang.String codingSchemeUri, java.util.List<T> daos)
           
protected
<T extends LexGridSchemaVersionAwareDao>
T
doGetDao(java.lang.String codingSchemeUri, java.lang.String version, java.util.List<T> daos)
          Do get dao.
 AssociationDao getAssociationDao(java.lang.String codingSchemeUri, java.lang.String version)
          Gets the association dao.
 java.util.List<AssociationDao> getAssociationDaos()
          Gets the association daos.
 AssociationDataDao getAssociationDataDao(java.lang.String codingSchemeUri, java.lang.String version)
          Gets the association data dao.
 java.util.List<AssociationDataDao> getAssociationDataDaos()
           
 AssociationTargetDao getAssociationTargetDao(java.lang.String codingSchemeUri, java.lang.String version)
          Gets the association Target dao.
 java.util.List<AssociationTargetDao> getAssociationTargetDaos()
           
 CodedNodeGraphDao getCodedNodeGraphDao(java.lang.String codingSchemeUri, java.lang.String version)
           
 java.util.List<CodedNodeGraphDao> getCodedNodeGraphDaos()
           
 CodingSchemeDao getCodingSchemeDao(java.lang.String codingSchemeUri, java.lang.String version)
          Gets the coding scheme dao.
 java.util.List<CodingSchemeDao> getCodingSchemeDaos()
          Gets the coding scheme daos.
protected
<T extends LexGridSchemaVersionAwareDao>
T
getCorrectDaoForSchemaVersion(java.util.List<T> possibleDaos, LexGridSchemaVersion schemaVersion)
          Gets the correct dao for schema version.
 AssociationDao getCurrentAssociationDao()
          Gets the current association dao.
 AssociationDataDao getCurrentAssociationDataDao()
          Gets the current association data dao.
 AssociationTargetDao getCurrentAssociationTargetDao()
          Gets the current association target dao.
 CodedNodeGraphDao getCurrentCodedNodeGraphDao()
          Gets the current codednodegraph dao.
 CodingSchemeDao getCurrentCodingSchemeDao()
          Gets the current coding scheme dao.
 EntityDao getCurrentEntityDao()
          Gets the current entity dao.
 PickListDao getCurrentPickListDefinitionDao()
          Gets the current pick list dao.
 PickListEntryNodeDao getCurrentPickListEntryNodeDao()
          Gets the current pick list entry node dao.
 ValueSetDefinitionDao getCurrentValueSetDefinitionDao()
          Gets the current value set definition dao.
 LexGridSchemaVersion getCurrentVersion()
           
 VSDefinitionEntryDao getCurrentVSDefinitionEntryDao()
          Gets the current value set definition entry dao.
 VSEntryStateDao getCurrentVsEntryStateDao()
          Gets the current value set EntryState dao.
 VSPropertyDao getCurrentVsPropertyDao()
          Gets the current value set property dao.
 EntityDao getEntityDao(java.lang.String codingSchemeUri, java.lang.String version)
          Gets the entity dao.
 java.util.List<EntityDao> getEntityDaos()
          Gets the entity daos.
protected  LexGridSchemaVersion getLexGridSchemaVersion(java.lang.String uri)
           
protected  LexGridSchemaVersion getLexGridSchemaVersion(java.lang.String uri, java.lang.String version)
          Gets the lex grid schema version.
 NciHistoryDao getNciHistoryDao(java.lang.String codingSchemeUri)
           
 java.util.List<NciHistoryDao> getNciHistoryDaos()
           
 java.util.List<PickListDao> getPickListDaos()
          Gets the pick list definition daos.
 java.util.List<PickListEntryNodeDao> getPickListEntryNodeDaos()
           
 PropertyDao getPropertyDao(java.lang.String codingSchemeUri, java.lang.String version)
          Gets the property dao.
 java.util.List<PropertyDao> getPropertyDaos()
          Gets the property daos.
 Registry getRegistry()
          Gets the registry.
 RevisionDao getRevisionDao()
           
 java.util.List<RevisionDao> getRevisionDaos()
          Gets the revision daos.
 SystemReleaseDao getSystemReleaseDao()
           
 java.util.List<SystemReleaseDao> getSystemReleaseDaos()
          Gets the systemRelease daos.
 java.util.List<ValueSetDefinitionDao> getValueSetDefinitionDaos()
           
 VersionsDao getVersionsDao(java.lang.String codingSchemeUri, java.lang.String version)
          Gets the versions dao.
 java.util.List<VersionsDao> getVersionsDaos()
          Gets the versions daos.
 java.util.List<VSDefinitionEntryDao> getVsDefinitionEntryDaos()
           
 java.util.List<VSEntryStateDao> getVsEntryStateDaos()
           
 java.util.List<VSPropertyDao> getVsPropertyDaos()
           
 void setAssociationDaos(java.util.List<AssociationDao> associationDaos)
          Sets the association daos.
 void setAssociationDataDaos(java.util.List<AssociationDataDao> associationDataDaos)
           
 void setAssociationTargetDaos(java.util.List<AssociationTargetDao> associationTargetDaos)
           
 void setCodedNodeGraphDaos(java.util.List<CodedNodeGraphDao> codedNodeGraphDaos)
           
 void setCodingSchemeDaos(java.util.List<CodingSchemeDao> codingSchemeDaos)
          Sets the coding scheme daos.
 void setCurrentVersion(LexGridSchemaVersion currentVersion)
           
 void setEntityDaos(java.util.List<EntityDao> entityDaos)
          Sets the entity daos.
 void setNciHistoryDaos(java.util.List<NciHistoryDao> nciHistoryDaos)
           
 void setPickListDaos(java.util.List<PickListDao> pickListDaos)
          Sets the pick list definition daos.
 void setPickListEntryNodeDaos(java.util.List<PickListEntryNodeDao> pickListEntryNodeDaos)
           
 void setPropertyDaos(java.util.List<PropertyDao> propertyDaos)
          Sets the property daos.
 void setRegistry(Registry registry)
          Sets the registry.
 void setRevisionDaos(java.util.List<RevisionDao> revisionDaos)
           
 void setSystemReleaseDaos(java.util.List<SystemReleaseDao> systemReleaseDaos)
           
 void setValueSetDefinitionDaos(java.util.List<ValueSetDefinitionDao> valueSetDefinitionDaos)
           
 void setVersionsDaos(java.util.List<VersionsDao> versionsDaos)
          Sets the versions daos.
 void setVsDefinitionEntryDaos(java.util.List<VSDefinitionEntryDao> vsDefinitionEntryDaos)
           
 void setVsEntryStateDaos(java.util.List<VSEntryStateDao> vsEntryStateDaos)
           
 void setVsPropertyDaos(java.util.List<VSPropertyDao> vsPropertyDaos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentVersion

public LexGridSchemaVersion currentVersion
Constructor Detail

DaoManager

public DaoManager()
Method Detail

getVersionsDao

public VersionsDao getVersionsDao(java.lang.String codingSchemeUri,
                                  java.lang.String version)
Gets the versions dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the versions dao

getCurrentEntityDao

public EntityDao getCurrentEntityDao()
Gets the current entity dao.

Returns:
the current entity dao

getCurrentAssociationDao

public AssociationDao getCurrentAssociationDao()
Gets the current association dao.

Returns:
the current association dao

getCurrentAssociationTargetDao

public AssociationTargetDao getCurrentAssociationTargetDao()
Gets the current association target dao.

Returns:
the current association target dao

getCurrentAssociationDataDao

public AssociationDataDao getCurrentAssociationDataDao()
Gets the current association data dao.

Returns:
the current association data dao

getCurrentCodedNodeGraphDao

public CodedNodeGraphDao getCurrentCodedNodeGraphDao()
Gets the current codednodegraph dao.

Returns:
the current association dao

getEntityDao

public EntityDao getEntityDao(java.lang.String codingSchemeUri,
                              java.lang.String version)
Gets the entity dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the entity dao

getCodedNodeGraphDao

public CodedNodeGraphDao getCodedNodeGraphDao(java.lang.String codingSchemeUri,
                                              java.lang.String version)

getCodingSchemeDao

public CodingSchemeDao getCodingSchemeDao(java.lang.String codingSchemeUri,
                                          java.lang.String version)
Gets the coding scheme dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the coding scheme dao

getCurrentCodingSchemeDao

public CodingSchemeDao getCurrentCodingSchemeDao()
Gets the current coding scheme dao.

Returns:
the current coding scheme dao

getPropertyDao

public PropertyDao getPropertyDao(java.lang.String codingSchemeUri,
                                  java.lang.String version)
Gets the property dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the property dao

getAssociationDao

public AssociationDao getAssociationDao(java.lang.String codingSchemeUri,
                                        java.lang.String version)
Gets the association dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the association dao

getAssociationTargetDao

public AssociationTargetDao getAssociationTargetDao(java.lang.String codingSchemeUri,
                                                    java.lang.String version)
Gets the association Target dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the association entity dao

getAssociationDataDao

public AssociationDataDao getAssociationDataDao(java.lang.String codingSchemeUri,
                                                java.lang.String version)
Gets the association data dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the association data dao

getSystemReleaseDao

public SystemReleaseDao getSystemReleaseDao()

getRevisionDao

public RevisionDao getRevisionDao()

getNciHistoryDao

public NciHistoryDao getNciHistoryDao(java.lang.String codingSchemeUri)

doGetDao

protected <T extends LexGridSchemaVersionAwareDao> T doGetDao(java.lang.String codingSchemeUri,
                                                              java.lang.String version,
                                                              java.util.List<T> daos)
Do get dao.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
daos - the daos
Returns:
the t

doGetDao

protected <T extends LexGridSchemaVersionAwareDao> T doGetDao(java.lang.String codingSchemeUri,
                                                              java.util.List<T> daos)

getLexGridSchemaVersion

protected LexGridSchemaVersion getLexGridSchemaVersion(java.lang.String uri,
                                                       java.lang.String version)
Gets the lex grid schema version.

Parameters:
uri - the uri
version - the version
Returns:
the lex grid schema version

getLexGridSchemaVersion

protected LexGridSchemaVersion getLexGridSchemaVersion(java.lang.String uri)

getCorrectDaoForSchemaVersion

protected <T extends LexGridSchemaVersionAwareDao> T getCorrectDaoForSchemaVersion(java.util.List<T> possibleDaos,
                                                                                   LexGridSchemaVersion schemaVersion)
Gets the correct dao for schema version.

Parameters:
possibleDaos - the possible daos
schemaVersion - the schema version
Returns:
the correct dao for schema version

getCodingSchemeDaos

public java.util.List<CodingSchemeDao> getCodingSchemeDaos()
Gets the coding scheme daos.

Returns:
the coding scheme daos

setCodingSchemeDaos

public void setCodingSchemeDaos(java.util.List<CodingSchemeDao> codingSchemeDaos)
Sets the coding scheme daos.

Parameters:
codingSchemeDaos - the new coding scheme daos

getEntityDaos

public java.util.List<EntityDao> getEntityDaos()
Gets the entity daos.

Returns:
the entity daos

setEntityDaos

public void setEntityDaos(java.util.List<EntityDao> entityDaos)
Sets the entity daos.

Parameters:
entityDaos - the new entity daos

getPropertyDaos

public java.util.List<PropertyDao> getPropertyDaos()
Gets the property daos.

Returns:
the property daos

setPropertyDaos

public void setPropertyDaos(java.util.List<PropertyDao> propertyDaos)
Sets the property daos.

Parameters:
propertyDaos - the new property daos

getVersionsDaos

public java.util.List<VersionsDao> getVersionsDaos()
Gets the versions daos.

Returns:
the versions daos

setVersionsDaos

public void setVersionsDaos(java.util.List<VersionsDao> versionsDaos)
Sets the versions daos.

Parameters:
versionsDaos - the new versions daos

getRegistry

public Registry getRegistry()
Gets the registry.

Returns:
the registry

setRegistry

public void setRegistry(Registry registry)
Sets the registry.

Parameters:
registry - the new registry

setAssociationDaos

public void setAssociationDaos(java.util.List<AssociationDao> associationDaos)
Sets the association daos.

Parameters:
associationDaos - the new association daos

getAssociationDaos

public java.util.List<AssociationDao> getAssociationDaos()
Gets the association daos.

Returns:
the association daos

getPickListDaos

public java.util.List<PickListDao> getPickListDaos()
Gets the pick list definition daos.

Returns:
the pickListDaos

setPickListDaos

public void setPickListDaos(java.util.List<PickListDao> pickListDaos)
Sets the pick list definition daos.

Parameters:
pickListDaos - the pickListDaos to set

getCurrentPickListDefinitionDao

public PickListDao getCurrentPickListDefinitionDao()
Gets the current pick list dao.

Returns:
the current pick list dao

getCurrentPickListEntryNodeDao

public PickListEntryNodeDao getCurrentPickListEntryNodeDao()
Gets the current pick list entry node dao.

Returns:
the current pick list entry node dao

setSystemReleaseDaos

public void setSystemReleaseDaos(java.util.List<SystemReleaseDao> systemReleaseDaos)

getSystemReleaseDaos

public java.util.List<SystemReleaseDao> getSystemReleaseDaos()
Gets the systemRelease daos.

Returns:
the systemRelease daos

getRevisionDaos

public java.util.List<RevisionDao> getRevisionDaos()
Gets the revision daos.

Returns:
the revision daos

setRevisionDaos

public void setRevisionDaos(java.util.List<RevisionDao> revisionDaos)

getValueSetDefinitionDaos

public java.util.List<ValueSetDefinitionDao> getValueSetDefinitionDaos()
Returns:
the valueSetDefinitionDaos

setValueSetDefinitionDaos

public void setValueSetDefinitionDaos(java.util.List<ValueSetDefinitionDao> valueSetDefinitionDaos)
Parameters:
valueSetDefinitionDaos - the valueSetDefinitionDaos to set

getCurrentValueSetDefinitionDao

public ValueSetDefinitionDao getCurrentValueSetDefinitionDao()
Gets the current value set definition dao.

Returns:
the current value set definition dao.

getCurrentVSDefinitionEntryDao

public VSDefinitionEntryDao getCurrentVSDefinitionEntryDao()
Gets the current value set definition entry dao.

Returns:
the current value set definition entry dao.

getCodedNodeGraphDaos

public java.util.List<CodedNodeGraphDao> getCodedNodeGraphDaos()

setCodedNodeGraphDaos

public void setCodedNodeGraphDaos(java.util.List<CodedNodeGraphDao> codedNodeGraphDaos)

getVsPropertyDaos

public java.util.List<VSPropertyDao> getVsPropertyDaos()
Returns:
the vsPropertyDaos

setVsPropertyDaos

public void setVsPropertyDaos(java.util.List<VSPropertyDao> vsPropertyDaos)
Parameters:
vsPropertyDaos - the vsPropertyDaos to set

getCurrentVsPropertyDao

public VSPropertyDao getCurrentVsPropertyDao()
Gets the current value set property dao.

Returns:
the current value set property dao

getAssociationTargetDaos

public java.util.List<AssociationTargetDao> getAssociationTargetDaos()
Returns:
the associationEntityDaos

setAssociationTargetDaos

public void setAssociationTargetDaos(java.util.List<AssociationTargetDao> associationTargetDaos)
Parameters:
associationTargetDaos - the associationEntityDaos to set

getAssociationDataDaos

public java.util.List<AssociationDataDao> getAssociationDataDaos()
Returns:
the associationDataDaos

setAssociationDataDaos

public void setAssociationDataDaos(java.util.List<AssociationDataDao> associationDataDaos)
Parameters:
associationDataDaos - the associationDataDaos to set

getVsDefinitionEntryDaos

public java.util.List<VSDefinitionEntryDao> getVsDefinitionEntryDaos()
Returns:
the vsDefinitionEntryDaos

setVsDefinitionEntryDaos

public void setVsDefinitionEntryDaos(java.util.List<VSDefinitionEntryDao> vsDefinitionEntryDaos)
Parameters:
vsDefinitionEntryDaos - the vsDefinitionEntryDaos to set

getPickListEntryNodeDaos

public java.util.List<PickListEntryNodeDao> getPickListEntryNodeDaos()
Returns:
the pickListEntryNodeDaos

setPickListEntryNodeDaos

public void setPickListEntryNodeDaos(java.util.List<PickListEntryNodeDao> pickListEntryNodeDaos)
Parameters:
pickListEntryNodeDaos - the pickListEntryNodeDaos to set

getVsEntryStateDaos

public java.util.List<VSEntryStateDao> getVsEntryStateDaos()
Returns:
the vsEntryStateDaos

setVsEntryStateDaos

public void setVsEntryStateDaos(java.util.List<VSEntryStateDao> vsEntryStateDaos)
Parameters:
vsEntryStateDaos - the vsEntryStateDaos to set

getCurrentVsEntryStateDao

public VSEntryStateDao getCurrentVsEntryStateDao()
Gets the current value set EntryState dao.

Returns:
the current value set EntryState dao

setNciHistoryDaos

public void setNciHistoryDaos(java.util.List<NciHistoryDao> nciHistoryDaos)

getNciHistoryDaos

public java.util.List<NciHistoryDao> getNciHistoryDaos()

getCurrentVersion

public LexGridSchemaVersion getCurrentVersion()

setCurrentVersion

public void setCurrentVersion(LexGridSchemaVersion currentVersion)

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.