Record Class VersionDataDbRecord

java.lang.Object
java.lang.Record
org.ehrbase.repository.VersionDataDbRecord
Record Components:
versionRecord - the version record
dataRecords - a single-use stream of data records (created lazily)

public record VersionDataDbRecord(org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectVersionRecordPrototype versionRecord, Supplier<Stream<org.apache.commons.lang3.tuple.Pair<org.ehrbase.openehr.dbformat.StructureNode,org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectDataRecordPrototype>>> dataRecords) extends Record
Holds the database records representing one openEHR VERSION.
  • Constructor Summary

    Constructors
    Constructor
    Description
    VersionDataDbRecord(org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectVersionRecordPrototype versionRecord, Supplier<Stream<org.apache.commons.lang3.tuple.Pair<org.ehrbase.openehr.dbformat.StructureNode,org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectDataRecordPrototype>>> dataRecords)
    Creates an instance of a VersionDataDbRecord record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Supplier<Stream<org.apache.commons.lang3.tuple.Pair<org.ehrbase.openehr.dbformat.StructureNode,org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectDataRecordPrototype>>>
    Returns the value of the dataRecords record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    toRecords(UUID ehrId, com.nedap.archie.rm.archetyped.Locatable versionDataObject, UUID contributionId, UUID auditId, OffsetDateTime now, org.jooq.DSLContext context)
     
    final String
    Returns a string representation of this record class.
    org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectVersionRecordPrototype
    Returns the value of the versionRecord record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • VersionDataDbRecord

      public VersionDataDbRecord(org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectVersionRecordPrototype versionRecord, Supplier<Stream<org.apache.commons.lang3.tuple.Pair<org.ehrbase.openehr.dbformat.StructureNode,org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectDataRecordPrototype>>> dataRecords)
      Creates an instance of a VersionDataDbRecord record class.
      Parameters:
      versionRecord - the value for the versionRecord record component
      dataRecords - the value for the dataRecords record component
  • Method Details

    • toRecords

      public static VersionDataDbRecord toRecords(UUID ehrId, com.nedap.archie.rm.archetyped.Locatable versionDataObject, UUID contributionId, UUID auditId, OffsetDateTime now, org.jooq.DSLContext context)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • versionRecord

      public org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectVersionRecordPrototype versionRecord()
      Returns the value of the versionRecord record component.
      Returns:
      the value of the versionRecord record component
    • dataRecords

      public Supplier<Stream<org.apache.commons.lang3.tuple.Pair<org.ehrbase.openehr.dbformat.StructureNode,org.ehrbase.openehr.dbformat.jooq.prototypes.ObjectDataRecordPrototype>>> dataRecords()
      Returns the value of the dataRecords record component.
      Returns:
      the value of the dataRecords record component