Interface I_SimpleCRUD
-
- All Known Subinterfaces:
I_AttestationAccess,I_AuditDetailsAccess,I_CompositionHistoryAccess,I_ContainmentAccess,I_ContextAccess,I_ContributionAccess,I_EhrAccess,I_EntryAccess,I_SystemAccess,I_TemplateStoreAccess
- All Known Implementing Classes:
AttestationAccess,AuditDetailsAccess,CompositionHistoryAccess,ContextAccess,ContributionAccess,EhrAccess,EntryAccess,SystemAccess,TemplateStoreAccess
public interface I_SimpleCRUDGeneric CRUD Interface
The CRUD operation are performed on the current access layer instance
NB: read is implemented as a static (generally as retrieveInstanceForExistingFolder(...)) Created by Christian Chevalley on 4/10/2015.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDcommit()storeComposition a new entry in the DB, using a default transaction time
only implemented with "root" tables: ehr, contribution and composition!UUIDcommit(Timestamp transactionTime)storeComposition a new entry in the DBIntegerdelete()delete the Versioned Object associated with the instance implementing this Data Access Interface.Booleanupdate()updateComposition the current entry using time now as the system transaction time
only implemented at root level object (contribution, composition, ehr).Booleanupdate(Boolean force)updateComposition the current entry using time now as the system transaction time
only implemented at root level object (contribution, composition, ehr).Booleanupdate(Timestamp transactionTime)updateComposition the current entry
depending on the implementation, records are updated only if one or more field(s) have been changedBooleanupdate(Timestamp transactionTime, boolean force)updateComposition the current entry even if the record is not modified
intended to be used with temporal tables to ensure that a set of interdependent tables are updated in sync.
-
-
-
Method Detail
-
commit
UUID commit(Timestamp transactionTime)
storeComposition a new entry in the DB- Returns:
- the UUID of the newly created record
- Throws:
RuntimeException
-
commit
UUID commit()
storeComposition a new entry in the DB, using a default transaction time
only implemented with "root" tables: ehr, contribution and composition!- Returns:
- the UUID of the newly created record
- Throws:
RuntimeException
-
update
Boolean update(Timestamp transactionTime)
updateComposition the current entry
depending on the implementation, records are updated only if one or more field(s) have been changed- Returns:
- Throws:
RuntimeException
-
update
Boolean update(Timestamp transactionTime, boolean force)
updateComposition the current entry even if the record is not modified
intended to be used with temporal tables to ensure that a set of interdependent tables are updated in sync. This approach is used to simplify versions retrieval.- Parameters:
force-- Returns:
- Throws:
RuntimeException
-
update
Boolean update()
updateComposition the current entry using time now as the system transaction time
only implemented at root level object (contribution, composition, ehr). depending on the implementation, records are updated only if one or more field(s) have been changed- Returns:
- Throws:
RuntimeException
-
update
Boolean update(Boolean force)
updateComposition the current entry using time now as the system transaction time
only implemented at root level object (contribution, composition, ehr). depending on the implementation, records are updated only if one or more field(s) have been changed- Returns:
- Throws:
RuntimeException
-
delete
Integer delete()
delete the Versioned Object associated with the instance implementing this Data Access Interface. Relies on ON DELETE CASCADE- Returns:
- Throws:
RuntimeException
-
-