Package com.axelor.workflow.migrate
Record Class MigrationView
java.lang.Object
java.lang.Record
com.axelor.workflow.migrate.MigrationView
- Record Components:
sourceRevision- the revision whose positionsrowsdescribes, null for the unpinned grouptargetRevision- the revisionrows' targets were compiled fromparked- how many runs sit on the selected source
public record MigrationView(Long workflowId, String workflowName, Integer sourceRevision, Integer targetRevision, long parked, List<MigrationView.RevisionRef> sources, List<MigrationView.RevisionRef> revisions, List<MigrationView.Row> rows)
extends Record
One opening of the parked-run mover: the two pickers and the selected revision pair's mapping.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA revision as the pickers show it.static final recordOne position, and where it may go on the selected target. -
Constructor Summary
ConstructorsConstructorDescriptionMigrationView(Long workflowId, String workflowName, Integer sourceRevision, Integer targetRevision, long parked, List<MigrationView.RevisionRef> sources, List<MigrationView.RevisionRef> revisions, List<MigrationView.Row> rows) Creates an instance of aMigrationViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longparked()Returns the value of theparkedrecord component.Returns the value of therevisionsrecord component.rows()Returns the value of therowsrecord component.Returns the value of thesourceRevisionrecord component.sources()Returns the value of thesourcesrecord component.Returns the value of thetargetRevisionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkflowIdrecord component.Returns the value of theworkflowNamerecord component.
-
Constructor Details
-
MigrationView
public MigrationView(Long workflowId, String workflowName, Integer sourceRevision, Integer targetRevision, long parked, List<MigrationView.RevisionRef> sources, List<MigrationView.RevisionRef> revisions, List<MigrationView.Row> rows) Creates an instance of aMigrationViewrecord class.- Parameters:
workflowId- the value for theworkflowIdrecord componentworkflowName- the value for theworkflowNamerecord componentsourceRevision- the value for thesourceRevisionrecord componenttargetRevision- the value for thetargetRevisionrecord componentparked- the value for theparkedrecord componentsources- the value for thesourcesrecord componentrevisions- the value for therevisionsrecord componentrows- the value for therowsrecord 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
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
workflowId
Returns the value of theworkflowIdrecord component.- Returns:
- the value of the
workflowIdrecord component
-
workflowName
Returns the value of theworkflowNamerecord component.- Returns:
- the value of the
workflowNamerecord component
-
sourceRevision
Returns the value of thesourceRevisionrecord component.- Returns:
- the value of the
sourceRevisionrecord component
-
targetRevision
Returns the value of thetargetRevisionrecord component.- Returns:
- the value of the
targetRevisionrecord component
-
parked
public long parked()Returns the value of theparkedrecord component.- Returns:
- the value of the
parkedrecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-
revisions
Returns the value of therevisionsrecord component.- Returns:
- the value of the
revisionsrecord component
-
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-