Package com.axelor.workflow.migrate
Record Class MigrationRow
java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.MigrationRow
- Record Components:
revision- the source revision this position sits on; null for the unpinned groupsplitNode- the split, for a branch position; null otherwise. WithrevisionandnodeIdit names the position, which the server matches against a fresh inventorytarget- the node to move onto, orENDto finish the run as a success cut short; null forCANCELrunIds- the runs (or branch rows) this row reaches; empty means every run at the positionexcludeIds- whenrunIdsis empty, the runs to leave out
public record MigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds, List<Long> excludeIds)
extends Record
One row of the mover: a position, an action, and which runs behind the position it reaches.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds) A row that excludes nothing: the runs it names, or the whole position when it names none.MigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds, List<Long> excludeIds) Creates an instance of aMigrationRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.booleanfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludeIdsrecord component.final inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.revision()Returns the value of therevisionrecord component.runIds()Returns the value of therunIdsrecord component.Returns the value of thesplitNoderecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
END
The synthetic target that ends a run instead of re-parking it.- See Also:
-
-
Constructor Details
-
MigrationRow
public MigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds) A row that excludes nothing: the runs it names, or the whole position when it names none. -
MigrationRow
public MigrationRow(Integer revision, String nodeId, String splitNode, MigrationRow.Action action, String target, List<Long> runIds, List<Long> excludeIds) Creates an instance of aMigrationRowrecord class.- Parameters:
revision- the value for therevisionrecord componentnodeId- the value for thenodeIdrecord componentsplitNode- the value for thesplitNoderecord componentaction- the value for theactionrecord componenttarget- the value for thetargetrecord componentrunIds- the value for therunIdsrecord componentexcludeIds- the value for theexcludeIdsrecord component
-
-
Method Details
-
endsTheRun
public boolean endsTheRun() -
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
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. -
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). -
revision
Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
splitNode
Returns the value of thesplitNoderecord component.- Returns:
- the value of the
splitNoderecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
runIds
Returns the value of therunIdsrecord component.- Returns:
- the value of the
runIdsrecord component
-
excludeIds
Returns the value of theexcludeIdsrecord component.- Returns:
- the value of the
excludeIdsrecord component
-