Package de.bsvrz.ars.migration
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
ConstructorsConstructorDescriptionMigrationKey
(de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification) Creates an instance of aMigrationKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
de.bsvrz.ars.ars.persistence.IdDataIdentification
Returns the value of thedataIdentification
record component.final boolean
Indicates whether some other object is "equal to" this one.de.bsvrz.ars.ars.persistence.IdDataIdentification
final int
hashCode()
Returns a hash code value for this object.boolean
isValid()
final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MigrationKey
public MigrationKey(de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification) Creates an instance of aMigrationKey
record class.- Parameters:
dataIdentification
- the value for thedataIdentification
record component
-
-
Method Details
-
getElement
public de.bsvrz.ars.ars.persistence.IdDataIdentification getElement()- Specified by:
getElement
in interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
getThread
- Specified by:
getThread
in interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
isValid
public boolean isValid()- Specified by:
isValid
in interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
notClosed
- Specified by:
notClosed
in interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
dataIdentification
public de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification()Returns the value of thedataIdentification
record component.- Returns:
- the value of the
dataIdentification
record component
-