Package org.ametys.core.migration
Record Class MigrationEngine.ActionData
java.lang.Object
java.lang.Record
org.ametys.core.migration.MigrationEngine.ActionData
- Record Components:
currentVersion- the current versiontargetVersionNumber- the target versionNumber. If not present (mainly in case of upgrades), the target version is taken from the configuration.configuration- the action configurationversionListId- the encapsulatingMigrationEngine.VersionList's id, or null if not known
- Enclosing class:
MigrationEngine
public static record MigrationEngine.ActionData(Version currentVersion, String targetVersionNumber, ActionConfiguration configuration, String versionListId)
extends Record
All data needed to actually execute an upgrade action: the current version and the action configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionActionData(Version currentVersion, String targetVersionNumber, ActionConfiguration configuration, String versionListId) Creates an instance of aActionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationrecord component.Returns the value of thecurrentVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetargetVersionNumberrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionListIdrecord component.
-
Constructor Details
-
ActionData
public ActionData(Version currentVersion, String targetVersionNumber, ActionConfiguration configuration, String versionListId) Creates an instance of aActionDatarecord class.- Parameters:
currentVersion- the value for thecurrentVersionrecord componenttargetVersionNumber- the value for thetargetVersionNumberrecord componentconfiguration- the value for theconfigurationrecord componentversionListId- the value for theversionListIdrecord 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
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). -
currentVersion
Returns the value of thecurrentVersionrecord component.- Returns:
- the value of the
currentVersionrecord component
-
targetVersionNumber
Returns the value of thetargetVersionNumberrecord component.- Returns:
- the value of the
targetVersionNumberrecord component
-
configuration
Returns the value of theconfigurationrecord component.- Returns:
- the value of the
configurationrecord component
-
versionListId
Returns the value of theversionListIdrecord component.- Returns:
- the value of the
versionListIdrecord component
-