|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lexevs.dao.database.service.event.DatabaseServiceEventSupport
org.lexevs.dao.database.service.AbstractDatabaseService
org.lexevs.dao.database.service.RevisableAbstractDatabaseService<T,I>
public abstract class RevisableAbstractDatabaseService<T extends Versionable,I extends RevisableAbstractDatabaseService.CodingSchemeUriVersionBasedEntryId>
The Class RevisableAbstractDatabaseService.
Nested Class Summary | |
---|---|
static class |
RevisableAbstractDatabaseService.CodingSchemeUriVersionBasedEntryId
The Class CodingSchemeUriVersionBasedEntryId. |
static class |
RevisableAbstractDatabaseService.ParentUidReferencingId
|
static interface |
RevisableAbstractDatabaseService.UpdateTemplate
The Interface UpdateTemplate. |
Constructor Summary | |
---|---|
RevisableAbstractDatabaseService()
|
Method Summary | |
---|---|
protected abstract T |
addDependentAttributesByRevisionId(I id,
java.lang.String entryUid,
T entry,
java.lang.String revisionId)
|
protected abstract void |
doInsertDependentChanges(I id,
T revisedEntry)
Do insert dependent changes. |
protected abstract boolean |
entryStateExists(I id,
java.lang.String entryStateUid)
Entry state exists. |
protected java.lang.String |
getCodingSchemeUid(RevisableAbstractDatabaseService.CodingSchemeUriVersionBasedEntryId id)
|
protected abstract T |
getCurrentEntry(I id,
java.lang.String entryUId)
Gets the current entry. |
protected abstract java.lang.String |
getCurrentEntryStateUid(I id,
java.lang.String entryUid)
Gets the current entry state uid. |
protected abstract java.lang.String |
getEntryUid(I id,
T entry)
Gets the entry uid. |
protected abstract T |
getHistoryEntryByRevisionId(I id,
java.lang.String entryUid,
java.lang.String revisionId)
|
protected abstract java.lang.String |
getLatestRevisionId(I id,
java.lang.String entryUId)
|
protected void |
insertDependentChanges(I id,
T revisedEntry,
VersionsDao.EntryStateType type)
Insert dependent changes. |
protected abstract void |
insertIntoHistory(I id,
T currentEntry,
java.lang.String entryUId)
Insert into history. |
protected void |
insertVersionableChanges(I id,
T revisedEntry,
VersionsDao.EntryStateType type)
Insert versionable changes. |
protected void |
makeChange(I id,
T revisedEntry,
VersionsDao.EntryStateType type,
org.lexevs.dao.database.service.RevisableAbstractDatabaseService.ChangeDatabaseStateTemplate<I,T> template)
Make change. |
protected java.lang.String |
resolveCurrentEntryStateUid(I id,
java.lang.String entryUid,
VersionsDao.EntryStateType type)
Resolve current entry state uid. |
T |
resolveEntryByRevision(I id,
java.lang.String entryUid,
java.lang.String revisionId)
|
protected void |
updateEntry(I id,
T updatedEntry,
VersionsDao.EntryStateType type,
RevisableAbstractDatabaseService.UpdateTemplate updateTemplate)
Update entry. |
protected abstract java.lang.String |
updateEntryVersionableAttributes(I id,
java.lang.String entryUId,
T revisedEntity)
Update entity versionable attributes. |
protected boolean |
validRevision(I id,
T entry)
|
Methods inherited from class org.lexevs.dao.database.service.AbstractDatabaseService |
---|
getCodingSchemeUId, getDaoManager, getLogger, isChangeTypeDependent, isChangeTypeRemove, setDaoManager, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RevisableAbstractDatabaseService()
Method Detail |
---|
protected java.lang.String resolveCurrentEntryStateUid(I id, java.lang.String entryUid, VersionsDao.EntryStateType type)
id
- the identryUid
- the entry uidtype
- the type
protected void makeChange(I id, T revisedEntry, VersionsDao.EntryStateType type, org.lexevs.dao.database.service.RevisableAbstractDatabaseService.ChangeDatabaseStateTemplate<I,T> template) throws LBException
id
- the idrevisedEntry
- the revised entrytype
- the typetemplate
- the template
LBException
- the LB exceptionprotected void insertVersionableChanges(I id, T revisedEntry, VersionsDao.EntryStateType type) throws LBException
id
- the idrevisedEntry
- the revised entrytype
- the type
LBException
- the LB exceptionprotected void updateEntry(I id, T updatedEntry, VersionsDao.EntryStateType type, RevisableAbstractDatabaseService.UpdateTemplate updateTemplate) throws LBException
id
- the idupdatedEntry
- the updated entrytype
- the typeupdateTemplate
- the update template
LBException
- the LB exceptionprotected void insertDependentChanges(I id, T revisedEntry, VersionsDao.EntryStateType type) throws LBException
id
- the idrevisedEntry
- the revised entrytype
- the type
LBException
- the LB exceptionpublic T resolveEntryByRevision(I id, java.lang.String entryUid, java.lang.String revisionId) throws LBRevisionException
LBRevisionException
protected boolean validRevision(I id, T entry) throws LBException
LBException
protected abstract T addDependentAttributesByRevisionId(I id, java.lang.String entryUid, T entry, java.lang.String revisionId)
protected abstract void insertIntoHistory(I id, T currentEntry, java.lang.String entryUId)
id
- the idcurrentEntry
- the current entryentryUId
- the entry u idprotected abstract void doInsertDependentChanges(I id, T revisedEntry) throws LBException
id
- the idrevisedEntry
- the revised entry
LBException
- the LB exceptionprotected abstract java.lang.String updateEntryVersionableAttributes(I id, java.lang.String entryUId, T revisedEntity)
id
- the identryUId
- the entry u idrevisedEntity
- the revised entity
protected abstract T getCurrentEntry(I id, java.lang.String entryUId)
id
- the identryUId
- the entry u id
protected abstract T getHistoryEntryByRevisionId(I id, java.lang.String entryUid, java.lang.String revisionId)
protected abstract java.lang.String getLatestRevisionId(I id, java.lang.String entryUId)
protected abstract java.lang.String getEntryUid(I id, T entry)
id
- the identry
- the entry
protected abstract boolean entryStateExists(I id, java.lang.String entryStateUid)
id
- the identryStateUid
- the entry state uid
protected abstract java.lang.String getCurrentEntryStateUid(I id, java.lang.String entryUid)
id
- the identryUid
- the entry uid
protected java.lang.String getCodingSchemeUid(RevisableAbstractDatabaseService.CodingSchemeUriVersionBasedEntryId id)
|
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. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |