Package org.flywaydb.core.api.resource
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
ConstructorsConstructorDescriptionLoadableResourceMetadata(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 aLoadableResourceMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintchecksum()Returns the value of thechecksumrecord component.Returns the value of thedescriptionrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanbooleanReturns the value of theloadableResourcerecord component.org.flywaydb.core.extensibility.MigrationTypeReturns the value of themigrationTyperecord component.prefix()Returns the value of theprefixrecord component.org.flywaydb.core.internal.sqlscript.SqlScriptMetadataReturns the value of thesqlScriptMetadatarecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
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 aLoadableResourceMetadatarecord class.- Parameters:
version- the value for theversionrecord componentdescription- the value for thedescriptionrecord componentprefix- the value for theprefixrecord componentloadableResource- the value for theloadableResourcerecord componentsqlScriptMetadata- the value for thesqlScriptMetadatarecord componentchecksum- the value for thechecksumrecord componentmigrationType- the value for themigrationTyperecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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. -
isRepeatable
public boolean isRepeatable() -
isVersioned
public boolean isVersioned() -
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. -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
loadableResource
Returns the value of theloadableResourcerecord component.- Returns:
- the value of the
loadableResourcerecord component
-
sqlScriptMetadata
public org.flywaydb.core.internal.sqlscript.SqlScriptMetadata sqlScriptMetadata()Returns the value of thesqlScriptMetadatarecord component.- Returns:
- the value of the
sqlScriptMetadatarecord component
-
checksum
public int checksum()Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-
migrationType
public org.flywaydb.core.extensibility.MigrationType migrationType()Returns the value of themigrationTyperecord component.- Returns:
- the value of the
migrationTyperecord component
-