Record Class TableMigrator.Result

java.lang.Object
java.lang.Record
org.tentackle.model.migrate.TableMigrator.Result
Record Components:
hints - hints to control the created output, null or empty if none
columnMigrations - explicit column migrations, null or empty if none
renameColumns - explicit column rename hints, null or empty if none
tableSql - the sql code to migrate the table
foreignKeySql - the sql code to migrate the foreign keys
warningSql - generated SQL as comments
Enclosing class:
TableMigrator

public static record TableMigrator.Result(Collection<Pattern> hints, Collection<ColumnMigration> columnMigrations, Map<String,String> renameColumns, String tableSql, String foreignKeySql, String warningSql) extends Record
Migration result.
Contains the migration parameters and the resulting SQL code.
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hints

      public Collection<Pattern> hints()
      Returns the value of the hints record component.
      Returns:
      the value of the hints record component
    • columnMigrations

      public Collection<ColumnMigration> columnMigrations()
      Returns the value of the columnMigrations record component.
      Returns:
      the value of the columnMigrations record component
    • renameColumns

      public Map<String,String> renameColumns()
      Returns the value of the renameColumns record component.
      Returns:
      the value of the renameColumns record component
    • tableSql

      public String tableSql()
      Returns the value of the tableSql record component.
      Returns:
      the value of the tableSql record component
    • foreignKeySql

      public String foreignKeySql()
      Returns the value of the foreignKeySql record component.
      Returns:
      the value of the foreignKeySql record component
    • warningSql

      public String warningSql()
      Returns the value of the warningSql record component.
      Returns:
      the value of the warningSql record component