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 aMigrationKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()de.bsvrz.ars.ars.persistence.IdDataIdentificationReturns the value of thedataIdentificationrecord component.final booleanIndicates whether some other object is "equal to" this one.de.bsvrz.ars.ars.persistence.IdDataIdentificationfinal inthashCode()Returns a hash code value for this object.booleanisValid()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MigrationKey
public MigrationKey(de.bsvrz.ars.ars.persistence.IdDataIdentification dataIdentification) Creates an instance of aMigrationKeyrecord class.- Parameters:
dataIdentification- the value for thedataIdentificationrecord component
-
-
Method Details
-
getElement
public de.bsvrz.ars.ars.persistence.IdDataIdentification getElement()- Specified by:
getElementin interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
getThread
- Specified by:
getThreadin interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
isValid
public boolean isValid()- Specified by:
isValidin interfacede.bsvrz.ars.ars.mgmt.datatree.synchronization.SyncKey<de.bsvrz.ars.ars.persistence.IdDataIdentification>
-
notClosed
- Specified by:
notClosedin 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 thedataIdentificationrecord component.- Returns:
- the value of the
dataIdentificationrecord component
-