Record Class Metadata.MigrationRun
java.lang.Object
java.lang.Record
cloud.quinimbus.persistence.api.schema.Metadata.MigrationRun
- Enclosing class:
Metadata
-
Constructor Summary
ConstructorDescriptionMigrationRun
(String identifier, String entityType, Long schemaVersion, Instant runAt) Creates an instance of aMigrationRun
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentifier
record component.runAt()
Returns the value of therunAt
record component.Returns the value of theschemaVersion
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MigrationRun
Creates an instance of aMigrationRun
record class.- Parameters:
identifier
- the value for theidentifier
record componententityType
- the value for theentityType
record componentschemaVersion
- the value for theschemaVersion
record componentrunAt
- the value for therunAt
record component
-
-
Method Details
-
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)
. -
identifier
Returns the value of theidentifier
record component.- Returns:
- the value of the
identifier
record component
-
entityType
Returns the value of theentityType
record component.- Returns:
- the value of the
entityType
record component
-
schemaVersion
Returns the value of theschemaVersion
record component.- Returns:
- the value of the
schemaVersion
record component
-
runAt
Returns the value of therunAt
record component.- Returns:
- the value of the
runAt
record component
-