Class CompoXRefAccess

java.lang.Object
org.ehrbase.dao.access.support.DataAccess
org.ehrbase.dao.access.jooq.CompoXRefAccess
All Implemented Interfaces:
I_CompoXrefAccess, I_DomainAccess

public class CompoXRefAccess extends DataAccess implements I_CompoXrefAccess
Deals with composition links. For example to link an ACTION with an INSTRUCTION with or an OBSERVATION Created by christian on 9/12/2016.
  • Constructor Details

    • CompoXRefAccess

      public CompoXRefAccess(I_DomainAccess domainAccess)
  • Method Details

    • getLinkList

      public Map<UUID,Timestamp> getLinkList(UUID masterUid)
      Description copied from interface: I_CompoXrefAccess
      Retrieves list of children matching given parent/master ID
      Specified by:
      getLinkList in interface I_CompoXrefAccess
      Parameters:
      masterUid - parent or master UUID
      Returns:
      A list of children represented as map, where each child has its system transaction time as value
    • getLastLink

      public UUID getLastLink(UUID masterUid)
      Description copied from interface: I_CompoXrefAccess
      Retrieve only the latest (by system transaction time) of children matching given parent/master ID
      Specified by:
      getLastLink in interface I_CompoXrefAccess
      Parameters:
      masterUid - parent or master UUID
      Returns:
      UUID of newest child
    • setLink

      public int setLink(UUID masterUid, UUID childUid)
      Description copied from interface: I_CompoXrefAccess
      Insert a new link between given master and child
      Specified by:
      setLink in interface I_CompoXrefAccess
      Parameters:
      masterUid - parent or master UUID
      childUid - child UUID
      Returns:
      the number of inserted records
    • getDataAccess

      public DataAccess getDataAccess()
      Specified by:
      getDataAccess in interface I_DomainAccess