Package app.ductape.sdk.database.types
Record Class MigrationTypes.MigrationDefinition
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.MigrationTypes.MigrationDefinition
- Enclosing class:
- MigrationTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of thedependenciesrecord component.Returns the value of thedescriptionrecord component.down()Returns the value of thedownrecord component.final booleanIndicates whether some other object is "equal to" this one.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.up()Returns the value of theuprecord component.
-
Constructor Details
-
MigrationDefinition
public MigrationDefinition(String tag, String name, String description, List<Map<String, Object>> up, List<Map<String, Object>> down, List<String> dependencies, Instant createdAt) Creates an instance of aMigrationDefinitionrecord class.- Parameters:
tag- the value for thetagrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentup- the value for theuprecord componentdown- the value for thedownrecord componentdependencies- the value for thedependenciesrecord componentcreatedAt- the value for thecreatedAtrecord 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
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
up
Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-
down
Returns the value of thedownrecord component.- Returns:
- the value of the
downrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-