Package app.ductape.sdk.database.types
Record Class MigrationTypes.MigrationHistory
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.MigrationTypes.MigrationHistory
- Enclosing class:
- MigrationTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theappliedAtrecord component.Returns the value of theappliedByrecord component.checksum()Returns the value of thechecksumrecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionTimerecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MigrationHistory
public MigrationHistory(String tag, String name, Instant appliedAt, String appliedBy, String checksum, Long executionTime, String environment) Creates an instance of aMigrationHistoryrecord class.- Parameters:
tag- the value for thetagrecord componentname- the value for thenamerecord componentappliedAt- the value for theappliedAtrecord componentappliedBy- the value for theappliedByrecord componentchecksum- the value for thechecksumrecord componentexecutionTime- the value for theexecutionTimerecord componentenvironment- the value for theenvironmentrecord 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). -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
appliedAt
Returns the value of theappliedAtrecord component.- Returns:
- the value of the
appliedAtrecord component
-
appliedBy
Returns the value of theappliedByrecord component.- Returns:
- the value of the
appliedByrecord component
-
checksum
Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-
executionTime
Returns the value of theexecutionTimerecord component.- Returns:
- the value of the
executionTimerecord component
-
environment
Returns the value of theenvironmentrecord component.- Returns:
- the value of the
environmentrecord component
-