Record Class MigrationKey

java.lang.Object
java.lang.Record
de.bsvrz.ars.migration.MigrationKey
All Implemented Interfaces:
de.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>, AutoCloseable

public record MigrationKey(de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification) extends Record implements de.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
Dummy-SyncKey-implementierung, die nicht wirklich lockt, da das bei der Migration nicht notwendig ist.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MigrationKey(de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification)
    Creates an instance of a MigrationKey record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    de.bsvrz.ars.ars.persistence.IdDataIdentification
    Returns the value of the dataIdentification record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    de.bsvrz.ars.ars.persistence.IdDataIdentification
     
     
    final int
    Returns a hash code value for this object.
    boolean
     
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • MigrationKey

      public MigrationKey(de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification)
      Creates an instance of a MigrationKey record class.
      Parameters:
      dataIdentification - the value for the dataIdentification record component
  • Method Details

    • getElement

      public de.bsvrz.ars.ars.persistence.IdDataIdentification getElement()
      Specified by:
      getElement in interface de.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
    • getThread

      public Thread getThread()
      Specified by:
      getThread in interface de.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface de.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface de.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
    • notClosed

      public BooleanSupplier notClosed()
      Specified by:
      notClosed in interface de.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
    • 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.
    • dataIdentification

      public de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification()
      Returns the value of the dataIdentification record component.
      Returns:
      the value of the dataIdentification record component