Interface I_EntryAccess
- All Superinterfaces:
I_SimpleCRUD
- All Known Implementing Classes:
EntryAccess
Entry (Composition Content) access layer Created by Christian Chevalley on 4/21/2015.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Integerdelete(I_DomainAccess domainAccess, UUID id) delete an entryGet the root archetype to build the compositionget the entry category record id
Category attribute is a DvCodedTextcom.nedap.archie.rm.composition.Compositionget the actual composition held in this entryget the composition Id owning this entryorg.jooq.JSONBget the entry values as a JSON stringgetId()get the entry Idget the Item Type as a literal
Item type is one of section care_entry adminstatic I_EntryAccessgetNewInstance(I_DomainAccess domain, String templateId, Integer sequence, UUID compositionId, com.nedap.archie.rm.composition.Composition composition, String tenantIdentifier) create and get a new Entry commitget the sequence number if applicableget the template Id (a string) used to build the composition entrystatic StringgetTemplateIdFromEntry(I_DomainAccess domainAccess, UUID compositionId) Retrieves the template ID from a composition entry using the given composition ID and domain access.static I_EntryAccessretrieveInstanceInComposition(I_DomainAccess domainAccess, I_CompositionAccess compositionAccess) Retrieve theI_EntryAccesslinked to given composition.static I_EntryAccessretrieveInstanceInCompositionVersion(I_DomainAccess domainAccess, I_CompositionAccess compositionHistoryAccess, int version) Retrieve theI_EntryAccesslinked to given composition history.voidsetCompositionData(com.nedap.archie.rm.composition.Composition composition) set the composition data with an actualCompositionvoidsetCompositionId(UUID compositionId) set the owner composition by its IdvoidsetSequence(Integer sequence) set the sequence number of this entryvoidsetTemplateId(String templateId) set the template id to build the composition
-
Method Details
-
getNewInstance
static I_EntryAccess getNewInstance(I_DomainAccess domain, String templateId, Integer sequence, UUID compositionId, com.nedap.archie.rm.composition.Composition composition, String tenantIdentifier) create and get a new Entry commit- Parameters:
domain- SQL contexttemplateId- the template Id for the compositionsequence- a sequence number (Integer) if applicablecompositionId- the composition entry owning this contentcomposition- the actualCompositionto store- Returns:
- an access layer instance
- See Also:
-
Composition
-
retrieveInstanceInComposition
static I_EntryAccess retrieveInstanceInComposition(I_DomainAccess domainAccess, I_CompositionAccess compositionAccess) Retrieve theI_EntryAccesslinked to given composition.- Parameters:
domainAccess- SQL contextcompositionAccess- a composition access interface instance- Returns:
- the entry access
- Throws:
IllegalArgumentException- if DB is inconsistent or operation fails
-
getTemplateIdFromEntry
Retrieves the template ID from a composition entry using the given composition ID and domain access.- Parameters:
domainAccess- The domain access object used to retrieve the composition entry.compositionId- The UUID of the composition whose template ID is to be retrieved.- Returns:
- The template ID of the composition as a string.
-
retrieveInstanceInCompositionVersion
static I_EntryAccess retrieveInstanceInCompositionVersion(I_DomainAccess domainAccess, I_CompositionAccess compositionHistoryAccess, int version) Retrieve theI_EntryAccesslinked to given composition history.- Parameters:
domainAccess- SQL contextcompositionHistoryAccess- the composition history access instanceversion- the version of the composition- Returns:
- the entry access
-
delete
delete an entry- Parameters:
domainAccess- SQL accessid-UUIDof entry to delete- Returns:
- count of deleted
-
getComposition
com.nedap.archie.rm.composition.Composition getComposition()get the actual composition held in this entry- Returns:
Composition- See Also:
-
Composition
-
getId
UUID getId()get the entry Id- Returns:
- entry ID as
UUID
-
getEntryJson
org.jooq.JSONB getEntryJson()get the entry values as a JSON string- Returns:
- JSON representation of entry values
-
getCategory
DvCodedTextRecord getCategory()get the entry category record id
Category attribute is a DvCodedText- Returns:
DvCodedTextof category concept
-
getCompositionId
UUID getCompositionId()get the composition Id owning this entry- Returns:
- composition ID as
UUID
-
setCompositionId
set the owner composition by its Id- Parameters:
compositionId- UUID
-
getTemplateId
String getTemplateId()get the template Id (a string) used to build the composition entry- Returns:
- template ID as string
-
setTemplateId
set the template id to build the composition- Parameters:
templateId- a string
-
getSequence
Integer getSequence()get the sequence number if applicable- Returns:
- sequence number of entry
-
setSequence
set the sequence number of this entry- Parameters:
sequence- number of this entry
-
getArchetypeId
String getArchetypeId()Get the root archetype to build the composition- Returns:
- archetype ID as string
-
getRmVersion
String getRmVersion() -
getItemType
String getItemType()get the Item Type as a literal
Item type is one of- section
- care_entry
- admin
- Returns:
- item type as string
-
setCompositionData
void setCompositionData(com.nedap.archie.rm.composition.Composition composition) set the composition data with an actualComposition- Parameters:
composition- Composition- See Also:
-
Composition
-