public class IbatisVersionsDao extends AbstractIbatisDao implements VersionsDao
VersionsDao.EntryStateType
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GET_SYSTEM_RELEASE_ID_BY_URI
The GE t_ syste m_ releas e_ i d_ b y_ uri.
|
static java.lang.String |
INSERT_ENTRY_STATE_SQL |
static java.lang.String |
VERSIONS_NAMESPACE |
VSENTRYSTATE_NAMESPACE
Constructor and Description |
---|
IbatisVersionsDao() |
Modifier and Type | Method and Description |
---|---|
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 |
deleteAllEntryStateEntriesByEntryUId(java.lang.String codingSchemeUId,
java.lang.String entryUId) |
void |
deleteAllEntryStateOfCodingScheme(java.lang.String codingSchemeUId) |
void |
deleteAllEntryStateOfEntity(java.lang.String codingSchemeUId,
java.lang.String entityUId) |
void |
deleteAllEntryStateOfRelation(java.lang.String codingSchemeUId,
java.lang.String relationUId) |
java.util.List<LexGridSchemaVersion> |
doGetSupportedLgSchemaVersions()
Do get supported lg schema versions.
|
EntryState |
getEntryStateByEntryUidAndRevisionId(java.lang.String codingSchemeUId,
java.lang.String entryUId,
java.lang.String revisionId) |
IbatisRevisionDao |
getIbatisRevisionDao() |
java.lang.String |
getPreviousRevisionIdFromGivenRevisionIdForEntry(java.lang.String codingSchemeUid,
java.lang.String entityUid,
java.lang.String revisionId) |
java.lang.String |
getSystemReleaseIdByUri(java.lang.String systemReleaseUri)
Gets the system release id by uri.
|
void |
insertEntryState(java.lang.String codingSchemeUId,
java.lang.String entryStateUId,
java.lang.String entryUId,
VersionsDao.EntryStateType entryType,
java.lang.String previousEntryStateUId,
EntryState entryState) |
void |
insertEntryState(java.lang.String codingSchemeUId,
java.lang.String entryStateUId,
java.lang.String entryUId,
VersionsDao.EntryStateType entryType,
java.lang.String previousEntryStateUId,
EntryState entryState,
Inserter inserter) |
java.lang.String |
insertEntryState(java.lang.String codingSchemeUId,
java.lang.String entryUId,
VersionsDao.EntryStateType entryType,
java.lang.String previousEntryStateUId,
EntryState entryState) |
void |
insertRevision(Revision revision)
Insert revision.
|
void |
insertSystemRelease(SystemRelease systemRelease)
Insert system release.
|
void |
setIbatisRevisionDao(IbatisRevisionDao ibatisRevisionDao) |
void |
updateEntryState(java.lang.String id,
EntryState entryState) |
void |
updatePreviousEntryStateUIds(java.lang.String codingSchemeUId,
java.lang.String entryUId,
java.lang.String prevEntryStateUId,
java.lang.String newEntryStateUId) |
afterPropertiesSet, entryStateExists, executeInTransaction, getBatchTemplateInserter, getNonBatchTemplateInserter, getSqlMapClientTemplate, setNonBatchTemplateInserter, setSqlMapClientTemplate, vsEntryStateExists
createRandomIdentifier, createUniqueId, getPrefixResolver, getPrimaryKeyIncrementer, setPrefixResolver, setPrimaryKeyIncrementer, supportsLgSchemaVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeInTransaction, supportsLgSchemaVersion
public static java.lang.String VERSIONS_NAMESPACE
public static java.lang.String INSERT_ENTRY_STATE_SQL
public static java.lang.String GET_SYSTEM_RELEASE_ID_BY_URI
public java.lang.String getPreviousRevisionIdFromGivenRevisionIdForEntry(java.lang.String codingSchemeUid, java.lang.String entityUid, java.lang.String revisionId)
getPreviousRevisionIdFromGivenRevisionIdForEntry
in interface VersionsDao
public EntryState getEntryStateByEntryUidAndRevisionId(java.lang.String codingSchemeUId, java.lang.String entryUId, java.lang.String revisionId)
getEntryStateByEntryUidAndRevisionId
in interface VersionsDao
public java.lang.String getSystemReleaseIdByUri(java.lang.String systemReleaseUri)
VersionsDao
getSystemReleaseIdByUri
in interface VersionsDao
systemReleaseUri
- the system release uripublic void updateEntryState(java.lang.String id, EntryState entryState)
public void insertEntryState(java.lang.String codingSchemeUId, java.lang.String entryStateUId, java.lang.String entryUId, VersionsDao.EntryStateType entryType, java.lang.String previousEntryStateUId, EntryState entryState, Inserter inserter)
insertEntryState
in interface VersionsDao
public void insertRevision(Revision revision)
VersionsDao
insertRevision
in interface VersionsDao
revision
- the revisionpublic void insertSystemRelease(SystemRelease systemRelease)
VersionsDao
insertSystemRelease
in interface VersionsDao
systemRelease
- the system releasepublic void updatePreviousEntryStateUIds(java.lang.String codingSchemeUId, java.lang.String entryUId, java.lang.String prevEntryStateUId, java.lang.String newEntryStateUId)
updatePreviousEntryStateUIds
in interface VersionsDao
public java.lang.String insertEntryState(java.lang.String codingSchemeUId, java.lang.String entryUId, VersionsDao.EntryStateType entryType, java.lang.String previousEntryStateUId, EntryState entryState)
insertEntryState
in interface VersionsDao
public void insertEntryState(java.lang.String codingSchemeUId, java.lang.String entryStateUId, java.lang.String entryUId, VersionsDao.EntryStateType entryType, java.lang.String previousEntryStateUId, EntryState entryState)
insertEntryState
in interface VersionsDao
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)
prefix
- the prefixentryStateUId
- the entry state identryUId
- the entry identryType
- the entry typepreviousEntryStateUId
- the previous entry state identryState
- the entry statepublic void deleteAllEntryStateEntriesByEntryUId(java.lang.String codingSchemeUId, java.lang.String entryUId)
deleteAllEntryStateEntriesByEntryUId
in interface VersionsDao
public java.util.List<LexGridSchemaVersion> doGetSupportedLgSchemaVersions()
AbstractBaseDao
doGetSupportedLgSchemaVersions
in class AbstractBaseDao
public IbatisRevisionDao getIbatisRevisionDao()
public void setIbatisRevisionDao(IbatisRevisionDao ibatisRevisionDao)
ibatisRevisionDao
- the ibatisRevisionDao to setpublic void deleteAllEntryStateOfCodingScheme(java.lang.String codingSchemeUId)
deleteAllEntryStateOfCodingScheme
in interface VersionsDao
public void deleteAllEntryStateOfEntity(java.lang.String codingSchemeUId, java.lang.String entityUId)
deleteAllEntryStateOfEntity
in interface VersionsDao
public void deleteAllEntryStateOfRelation(java.lang.String codingSchemeUId, java.lang.String relationUId)
deleteAllEntryStateOfRelation
in interface VersionsDao