Record Class LoadableResourceMetadata

java.lang.Object
java.lang.Record
org.flywaydb.core.api.resource.LoadableResourceMetadata

public record LoadableResourceMetadata(MigrationVersion version, String description, String prefix, LoadableResource loadableResource, org.flywaydb.core.internal.sqlscript.SqlScriptMetadata sqlScriptMetadata, int checksum, org.flywaydb.core.extensibility.MigrationType migrationType) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoadableResourceMetadata(MigrationVersion version, String description, String prefix, LoadableResource loadableResource, org.flywaydb.core.internal.sqlscript.SqlScriptMetadata sqlScriptMetadata, int checksum, org.flywaydb.core.extensibility.MigrationType migrationType)
    Creates an instance of a LoadableResourceMetadata record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the checksum record component.
    Returns the value of the description record component.
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    boolean
     
    boolean
     
    Returns the value of the loadableResource record component.
    org.flywaydb.core.extensibility.MigrationType
    Returns the value of the migrationType record component.
    Returns the value of the prefix record component.
    org.flywaydb.core.internal.sqlscript.SqlScriptMetadata
    Returns the value of the sqlScriptMetadata record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the version record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LoadableResourceMetadata

      public LoadableResourceMetadata(MigrationVersion version, String description, String prefix, LoadableResource loadableResource, org.flywaydb.core.internal.sqlscript.SqlScriptMetadata sqlScriptMetadata, int checksum, org.flywaydb.core.extensibility.MigrationType migrationType)
      Creates an instance of a LoadableResourceMetadata record class.
      Parameters:
      version - the value for the version record component
      description - the value for the description record component
      prefix - the value for the prefix record component
      loadableResource - the value for the loadableResource record component
      sqlScriptMetadata - the value for the sqlScriptMetadata record component
      checksum - the value for the checksum record component
      migrationType - the value for the migrationType record component
  • Method Details

    • equals

      public 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • hashCode

      public 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
    • isRepeatable

      public boolean isRepeatable()
    • isVersioned

      public boolean isVersioned()
    • 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
    • version

      public MigrationVersion version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • prefix

      public String prefix()
      Returns the value of the prefix record component.
      Returns:
      the value of the prefix record component
    • loadableResource

      public LoadableResource loadableResource()
      Returns the value of the loadableResource record component.
      Returns:
      the value of the loadableResource record component
    • sqlScriptMetadata

      public org.flywaydb.core.internal.sqlscript.SqlScriptMetadata sqlScriptMetadata()
      Returns the value of the sqlScriptMetadata record component.
      Returns:
      the value of the sqlScriptMetadata record component
    • checksum

      public int checksum()
      Returns the value of the checksum record component.
      Returns:
      the value of the checksum record component
    • migrationType

      public org.flywaydb.core.extensibility.MigrationType migrationType()
      Returns the value of the migrationType record component.
      Returns:
      the value of the migrationType record component