org.lexevs.dao.database.ibatis.revision
Class IbatisRevisionDao

java.lang.Object
  extended by org.lexevs.dao.database.access.AbstractBaseDao
      extended by org.lexevs.dao.database.ibatis.AbstractIbatisDao
          extended by org.lexevs.dao.database.ibatis.revision.IbatisRevisionDao
All Implemented Interfaces:
LexGridSchemaVersionAwareDao, RevisionDao, org.springframework.beans.factory.InitializingBean

public class IbatisRevisionDao
extends AbstractIbatisDao
implements RevisionDao


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.access.LexGridSchemaVersionAwareDao
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
 
Field Summary
static java.lang.String VERSIONS_NAMESPACE
          The VERSION s_ namespace.
 
Fields inherited from class org.lexevs.dao.database.ibatis.AbstractIbatisDao
VSENTRYSTATE_NAMESPACE
 
Constructor Summary
IbatisRevisionDao()
           
 
Method Summary
 java.util.List<LexGridSchemaVersion> doGetSupportedLgSchemaVersions()
          Do get supported lg schema versions.
 java.util.List<Revision> getAllRevisions()
          get all system release entries.
 java.lang.String getNewRevisionId()
           
 Revision getRevisionByGuid(java.lang.String revisionGuid)
          get revision entry for a given guid.
 Revision getRevisionByUri(java.lang.String revisionUri)
          get revision entry for a given uri.
 java.lang.String getRevisionIdForDate(java.sql.Timestamp dateTime)
           
 java.lang.String getRevisionUIdById(java.lang.String revisionId)
          get revision guid by uri.
 SystemReleaseDao getSystemReleaseDao()
           
 java.lang.String insertRevisionEntry(Revision revision, java.lang.String releaseURI)
          insert system release entry.
 boolean removeRevisionById(java.lang.String revisionId)
          remove revision record from the revision table if not used by any entry.
 void setSystemReleaseDao(SystemReleaseDao systemReleaseDao)
           
 
Methods inherited from class org.lexevs.dao.database.ibatis.AbstractIbatisDao
afterPropertiesSet, entryStateExists, executeInTransaction, getBatchTemplateInserter, getNonBatchTemplateInserter, getSqlMapClientTemplate, setNonBatchTemplateInserter, setSqlMapClientTemplate, vsEntryStateExists
 
Methods inherited from class org.lexevs.dao.database.access.AbstractBaseDao
createRandomIdentifier, createUniqueId, getPrefixResolver, getPrimaryKeyIncrementer, setPrefixResolver, setPrimaryKeyIncrementer, supportsLgSchemaVersion
 
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.access.LexGridSchemaVersionAwareDao
executeInTransaction, supportsLgSchemaVersion
 

Field Detail

VERSIONS_NAMESPACE

public static java.lang.String VERSIONS_NAMESPACE
The VERSION s_ namespace.

Constructor Detail

IbatisRevisionDao

public IbatisRevisionDao()
Method Detail

getAllRevisions

public java.util.List<Revision> getAllRevisions()
Description copied from interface: RevisionDao
get all system release entries.

Specified by:
getAllRevisions in interface RevisionDao
Returns:

getRevisionByGuid

public Revision getRevisionByGuid(java.lang.String revisionGuid)
Description copied from interface: RevisionDao
get revision entry for a given guid.

Specified by:
getRevisionByGuid in interface RevisionDao
Returns:

getRevisionByUri

public Revision getRevisionByUri(java.lang.String revisionUri)
Description copied from interface: RevisionDao
get revision entry for a given uri.

Specified by:
getRevisionByUri in interface RevisionDao
Returns:

getRevisionUIdById

public java.lang.String getRevisionUIdById(java.lang.String revisionId)
Description copied from interface: RevisionDao
get revision guid by uri.

Specified by:
getRevisionUIdById in interface RevisionDao
Returns:

insertRevisionEntry

public java.lang.String insertRevisionEntry(Revision revision,
                                            java.lang.String releaseURI)
                                     throws LBRevisionException
Description copied from interface: RevisionDao
insert system release entry.

Specified by:
insertRevisionEntry in interface RevisionDao
Throws:
LBRevisionException

getRevisionIdForDate

@Transactional
public java.lang.String getRevisionIdForDate(java.sql.Timestamp dateTime)
Specified by:
getRevisionIdForDate in interface RevisionDao

doGetSupportedLgSchemaVersions

public java.util.List<LexGridSchemaVersion> doGetSupportedLgSchemaVersions()
Description copied from class: AbstractBaseDao
Do get supported lg schema versions.

Specified by:
doGetSupportedLgSchemaVersions in class AbstractBaseDao
Returns:
the list< lex grid schema version>

getSystemReleaseDao

public SystemReleaseDao getSystemReleaseDao()

setSystemReleaseDao

public void setSystemReleaseDao(SystemReleaseDao systemReleaseDao)

getNewRevisionId

public java.lang.String getNewRevisionId()
Specified by:
getNewRevisionId in interface RevisionDao

removeRevisionById

public boolean removeRevisionById(java.lang.String revisionId)
                           throws LBException
Description copied from interface: RevisionDao
remove revision record from the revision table if not used by any entry.

Specified by:
removeRevisionById in interface RevisionDao
Returns:
true; if successful
Throws:
LBException

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.