org.lexevs.dao.database.ibatis.valuesets
Class IbatisVSEntryStateDao

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.valuesets.IbatisVSEntryStateDao
All Implemented Interfaces:
LexGridSchemaVersionAwareDao, VSEntryStateDao, org.springframework.beans.factory.InitializingBean

public class IbatisVSEntryStateDao
extends AbstractIbatisDao
implements VSEntryStateDao

The Class IbatisVSEntryStateDao manages entrystate data to/fro database.

Author:
Sridhar Dwarkanath

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.access.LexGridSchemaVersionAwareDao
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
 
Field Summary
static java.lang.String GET_ENTRY_STATE_BY_ID_SQL
          The GE t_ entr y_ stat e_ b y_ i d_ sql.
static java.lang.String INSERT_ENTRY_STATE_SQL
          The INSER t_ entr y_ stat e_ sql.
static java.lang.String VERSIONS_NAMESPACE
          The VERSION s_ namespace.
 
Fields inherited from class org.lexevs.dao.database.ibatis.AbstractIbatisDao
VSENTRYSTATE_NAMESPACE
 
Constructor Summary
IbatisVSEntryStateDao()
           
 
Method Summary
protected  InsertEntryStateBean buildInsertEntryStateBean(java.lang.String prefix, java.lang.String entryStateUId, java.lang.String entryUId, java.lang.String entryType, java.lang.String previousEntryStateUId, EntryState entryState)
          Builds the insert entry state bean.
 void deleteAllEntryStateByEntryUIdAndType(java.lang.String valueSetDefGuid, java.lang.String entryType)
           
 void deleteAllEntryStateEntriesByEntryUId(java.lang.String entryUId)
           
 void deleteAllEntryStatesOfPickListDefinitionByUId(java.lang.String pickListUId)
           
 void deleteAllEntryStatesOfPLEntryNodeByUId(java.lang.String pickListEntryNodeUId)
           
 void deleteAllEntryStatesOfValueSetDefinitionByUId(java.lang.String valueSetDefGuid)
           
 void deleteAllEntryStatesOfVsPropertiesByParentUId(java.lang.String parentUId, java.lang.String parentType)
           
 java.util.List<LexGridSchemaVersion> doGetSupportedLgSchemaVersions()
          Do get supported lg schema versions.
 EntryState getEntryStateByUId(java.lang.String entryStateUId)
          Gets the entry state by UID.
 java.lang.String insertEntryState(java.lang.String entryUId, java.lang.String entryType, java.lang.String previousEntryStateUId, EntryState entryState)
          Insert entry state.
 void insertEntryState(java.lang.String entryStateUId, java.lang.String entryUId, java.lang.String entryType, java.lang.String previousEntryStateUId, EntryState entryState)
          Insert entry state.
 void insertEntryState(java.lang.String prefix, java.lang.String entryStateId, java.lang.String entryId, java.lang.String entryType, java.lang.String previousEntryStateId, EntryState entryState, Inserter inserter)
          Insert entry state.
 void setIbatisRevisionDao(IbatisRevisionDao ibatisRevisionDao)
           
 void updateEntryState(java.lang.String id, EntryState entryState)
          Update entry state.
 
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.


INSERT_ENTRY_STATE_SQL

public static java.lang.String INSERT_ENTRY_STATE_SQL
The INSER t_ entr y_ stat e_ sql.


GET_ENTRY_STATE_BY_ID_SQL

public static java.lang.String GET_ENTRY_STATE_BY_ID_SQL
The GE t_ entr y_ stat e_ b y_ i d_ sql.

Constructor Detail

IbatisVSEntryStateDao

public IbatisVSEntryStateDao()
Method Detail

getEntryStateByUId

public EntryState getEntryStateByUId(java.lang.String entryStateUId)
Description copied from interface: VSEntryStateDao
Gets the entry state by UID.

Specified by:
getEntryStateByUId in interface VSEntryStateDao
Returns:
the entry state

updateEntryState

public void updateEntryState(java.lang.String id,
                             EntryState entryState)
Description copied from interface: VSEntryStateDao
Update entry state.

Specified by:
updateEntryState in interface VSEntryStateDao
entryState - the entry state

insertEntryState

public void insertEntryState(java.lang.String prefix,
                             java.lang.String entryStateId,
                             java.lang.String entryId,
                             java.lang.String entryType,
                             java.lang.String previousEntryStateId,
                             EntryState entryState,
                             Inserter inserter)
Insert entry state.

Parameters:
prefix - the prefix
entryStateId - the entry state id
entryId - the entry id
entryType - the entry type
previousEntryStateId - the previous entry state id
entryState - the entry state
inserter - the ibatis inserter

insertEntryState

public java.lang.String insertEntryState(java.lang.String entryUId,
                                         java.lang.String entryType,
                                         java.lang.String previousEntryStateUId,
                                         EntryState entryState)
Description copied from interface: VSEntryStateDao
Insert entry state.

Specified by:
insertEntryState in interface VSEntryStateDao
Parameters:
entryUId - the entry resource UID
entryType - the entry type
previousEntryStateUId - the previous entry state UID
entryState - the entry state

insertEntryState

public void insertEntryState(java.lang.String entryStateUId,
                             java.lang.String entryUId,
                             java.lang.String entryType,
                             java.lang.String previousEntryStateUId,
                             EntryState entryState)
Description copied from interface: VSEntryStateDao
Insert entry state.

Specified by:
insertEntryState in interface VSEntryStateDao
entryUId - the entry id
entryType - the entry type
previousEntryStateUId - the previous entry state id
entryState - the entry state

deleteAllEntryStatesOfVsPropertiesByParentUId

public void deleteAllEntryStatesOfVsPropertiesByParentUId(java.lang.String parentUId,
                                                          java.lang.String parentType)
Specified by:
deleteAllEntryStatesOfVsPropertiesByParentUId in interface VSEntryStateDao

buildInsertEntryStateBean

protected InsertEntryStateBean buildInsertEntryStateBean(java.lang.String prefix,
                                                         java.lang.String entryStateUId,
                                                         java.lang.String entryUId,
                                                         java.lang.String entryType,
                                                         java.lang.String previousEntryStateUId,
                                                         EntryState entryState)
Builds the insert entry state bean.

Parameters:
prefix - the prefix
entryStateUId - the entry state id
entryUId - the entry id
entryType - the entry type
previousEntryStateUId - the previous entry state id
entryState - the entry state
Returns:
the insert entry state bean

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>

setIbatisRevisionDao

public void setIbatisRevisionDao(IbatisRevisionDao ibatisRevisionDao)

deleteAllEntryStatesOfValueSetDefinitionByUId

public void deleteAllEntryStatesOfValueSetDefinitionByUId(java.lang.String valueSetDefGuid)
Specified by:
deleteAllEntryStatesOfValueSetDefinitionByUId in interface VSEntryStateDao

deleteAllEntryStateByEntryUIdAndType

public void deleteAllEntryStateByEntryUIdAndType(java.lang.String valueSetDefGuid,
                                                 java.lang.String entryType)
Specified by:
deleteAllEntryStateByEntryUIdAndType in interface VSEntryStateDao

deleteAllEntryStateEntriesByEntryUId

public void deleteAllEntryStateEntriesByEntryUId(java.lang.String entryUId)
Specified by:
deleteAllEntryStateEntriesByEntryUId in interface VSEntryStateDao

deleteAllEntryStatesOfPickListDefinitionByUId

public void deleteAllEntryStatesOfPickListDefinitionByUId(java.lang.String pickListUId)
Specified by:
deleteAllEntryStatesOfPickListDefinitionByUId in interface VSEntryStateDao

deleteAllEntryStatesOfPLEntryNodeByUId

public void deleteAllEntryStatesOfPLEntryNodeByUId(java.lang.String pickListEntryNodeUId)
Specified by:
deleteAllEntryStatesOfPLEntryNodeByUId in interface VSEntryStateDao

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.