Interface I_SimpleCRUD

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      UUID commit()
      storeComposition a new entry in the DB, using a default transaction time
      only implemented with "root" tables: ehr, contribution and composition!
      UUID commit​(Timestamp transactionTime)
      storeComposition a new entry in the DB
      Integer delete()
      delete the Versioned Object associated with the instance implementing this Data Access Interface.
      Boolean update()
      updateComposition the current entry using time now as the system transaction time
      only implemented at root level object (contribution, composition, ehr).
      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).
      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
      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.
    • 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