Package com.onec.schema
Record Class MigrationPlan
java.lang.Object
java.lang.Record
com.onec.schema.MigrationPlan
The ordered set of changes that would bring the database in line with the metadata.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMigrationPlan(List<SchemaChange> changes) Creates an instance of aMigrationPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchanges()Returns the value of thechangesrecord component.describe()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()safe()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
MigrationPlan
Creates an instance of aMigrationPlanrecord class.- Parameters:
changes- the value for thechangesrecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
destructive
-
safe
-
describe
-
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). -
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-