Interface I_SimpleCRUD
- All Known Subinterfaces:
I_AttestationAccess,I_AuditDetailsAccess,I_CompositionHistoryAccess,I_ContainmentAccess,I_ContextAccess,I_ContributionAccess,I_EhrAccess,I_EntryAccess,I_StatusHistoryAccess,I_SystemAccess,I_TemplateStoreAccess
- All Known Implementing Classes:
AttestationAccess,AuditDetailsAccess,CompositionHistoryAccess,ContextAccess,ContributionAccess,EhrAccess,EntryAccess,StatusHistoryAccess,SystemAccess,TemplateStoreAccess
public interface I_SimpleCRUD
Generic 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.
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
Modifier and TypeMethodDescriptioncommit()storeComposition a new entry in the DB, using a default transaction time
only implemented with "root" tables: ehr, contribution and composition!storeComposition a new entry in the DBdelete()delete the Versioned Object associated with the instance implementing this Data Access Interface.update()updateComposition the current entry using time now as the system transaction time
only implemented at root level object (contribution, composition, ehr).updateComposition the current entry using time now as the system transaction time
only implemented at root level object (contribution, composition, ehr).updateComposition the current entry
depending on the implementation, records are updated only if one or more field(s) have been changedupdateComposition 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 Details
-
commit
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
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
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
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
-