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
ConstructorDescriptionActionData
(Version currentVersion, String targetVersionNumber, ActionConfiguration configuration, String versionListId) Creates an instance of aActionData
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfiguration
record component.Returns the value of thecurrentVersion
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetargetVersionNumber
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theversionListId
record component.
-
Constructor Details
-
ActionData
public ActionData(Version currentVersion, String targetVersionNumber, ActionConfiguration configuration, String versionListId) Creates an instance of aActionData
record class.- Parameters:
currentVersion
- the value for thecurrentVersion
record componenttargetVersionNumber
- the value for thetargetVersionNumber
record componentconfiguration
- the value for theconfiguration
record componentversionListId
- the value for theversionListId
record 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 thecurrentVersion
record component.- Returns:
- the value of the
currentVersion
record component
-
targetVersionNumber
Returns the value of thetargetVersionNumber
record component.- Returns:
- the value of the
targetVersionNumber
record component
-
configuration
Returns the value of theconfiguration
record component.- Returns:
- the value of the
configuration
record component
-
versionListId
Returns the value of theversionListId
record component.- Returns:
- the value of the
versionListId
record component
-