Package org.pentaho.di.core.undo
Class TransAction
- java.lang.Object
-
- org.pentaho.di.core.undo.TransAction
-
public class TransAction extends Object
This class store undo and redo information... Possible changes to a transformation:step
hop
note
connection
Build an Undo/Redo class containing:
Type of change
Description of action
Link to previous infomation
- Since:
- 19-12-2003
- Author:
- Matt
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TransAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getCurrent()
int[]
getCurrentIndex()
org.pentaho.di.core.gui.Point[]
getCurrentLocation()
boolean
getNextAlso()
Get the status of the nextAlso flag.Object[]
getPrevious()
int[]
getPreviousIndex()
org.pentaho.di.core.gui.Point[]
getPreviousLocation()
int
getType()
void
setChanged(Object[] prev, Object[] curr, int[] idx)
void
setDelete(Object[] prev, int[] idx)
void
setItemMove(int[] prev, int[] curr)
void
setNew(Object[] prev, int[] position)
void
setNextAlso(boolean nextAlso)
Indicate that the next operations needs to be undone too.void
setPosition(Object[] obj, int[] idx, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr)
String
toString()
-
-
-
Field Detail
-
TYPE_ACTION_NONE
public static final int TYPE_ACTION_NONE
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_STEP
public static final int TYPE_ACTION_CHANGE_STEP
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_CONNECTION
public static final int TYPE_ACTION_CHANGE_CONNECTION
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_HOP
public static final int TYPE_ACTION_CHANGE_HOP
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_NOTE
public static final int TYPE_ACTION_CHANGE_NOTE
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_STEP
public static final int TYPE_ACTION_NEW_STEP
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_CONNECTION
public static final int TYPE_ACTION_NEW_CONNECTION
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_HOP
public static final int TYPE_ACTION_NEW_HOP
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_NOTE
public static final int TYPE_ACTION_NEW_NOTE
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_STEP
public static final int TYPE_ACTION_DELETE_STEP
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_CONNECTION
public static final int TYPE_ACTION_DELETE_CONNECTION
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_HOP
public static final int TYPE_ACTION_DELETE_HOP
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_NOTE
public static final int TYPE_ACTION_DELETE_NOTE
- See Also:
- Constant Field Values
-
TYPE_ACTION_POSITION_STEP
public static final int TYPE_ACTION_POSITION_STEP
- See Also:
- Constant Field Values
-
TYPE_ACTION_POSITION_NOTE
public static final int TYPE_ACTION_POSITION_NOTE
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_JOB_ENTRY
public static final int TYPE_ACTION_CHANGE_JOB_ENTRY
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_JOB_HOP
public static final int TYPE_ACTION_CHANGE_JOB_HOP
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_JOB_ENTRY
public static final int TYPE_ACTION_NEW_JOB_ENTRY
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_JOB_HOP
public static final int TYPE_ACTION_NEW_JOB_HOP
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_JOB_ENTRY
public static final int TYPE_ACTION_DELETE_JOB_ENTRY
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_JOB_HOP
public static final int TYPE_ACTION_DELETE_JOB_HOP
- See Also:
- Constant Field Values
-
TYPE_ACTION_POSITION_JOB_ENTRY
public static final int TYPE_ACTION_POSITION_JOB_ENTRY
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_TABLEITEM
public static final int TYPE_ACTION_CHANGE_TABLEITEM
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_TABLEITEM
public static final int TYPE_ACTION_NEW_TABLEITEM
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_TABLEITEM
public static final int TYPE_ACTION_DELETE_TABLEITEM
- See Also:
- Constant Field Values
-
TYPE_ACTION_POSITION_TABLEITEM
public static final int TYPE_ACTION_POSITION_TABLEITEM
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_TABLE
public static final int TYPE_ACTION_CHANGE_TABLE
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_RELATIONSHIP
public static final int TYPE_ACTION_CHANGE_RELATIONSHIP
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_TABLE
public static final int TYPE_ACTION_NEW_TABLE
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_RELATIONSHIP
public static final int TYPE_ACTION_NEW_RELATIONSHIP
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_TABLE
public static final int TYPE_ACTION_DELETE_TABLE
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_RELATIONSHIP
public static final int TYPE_ACTION_DELETE_RELATIONSHIP
- See Also:
- Constant Field Values
-
TYPE_ACTION_POSITION_TABLE
public static final int TYPE_ACTION_POSITION_TABLE
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_SLAVE
public static final int TYPE_ACTION_NEW_SLAVE
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_SLAVE
public static final int TYPE_ACTION_CHANGE_SLAVE
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_SLAVE
public static final int TYPE_ACTION_DELETE_SLAVE
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_CLUSTER
public static final int TYPE_ACTION_NEW_CLUSTER
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_CLUSTER
public static final int TYPE_ACTION_CHANGE_CLUSTER
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_CLUSTER
public static final int TYPE_ACTION_DELETE_CLUSTER
- See Also:
- Constant Field Values
-
TYPE_ACTION_NEW_PARTITION
public static final int TYPE_ACTION_NEW_PARTITION
- See Also:
- Constant Field Values
-
TYPE_ACTION_CHANGE_PARTITION
public static final int TYPE_ACTION_CHANGE_PARTITION
- See Also:
- Constant Field Values
-
TYPE_ACTION_DELETE_PARTITION
public static final int TYPE_ACTION_DELETE_PARTITION
- See Also:
- Constant Field Values
-
desc_action
public static final String[] desc_action
-
-
Method Detail
-
setDelete
public void setDelete(Object[] prev, int[] idx)
-
setNew
public void setNew(Object[] prev, int[] position)
-
setPosition
public void setPosition(Object[] obj, int[] idx, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr)
-
setItemMove
public void setItemMove(int[] prev, int[] curr)
-
getType
public int getType()
-
getPrevious
public Object[] getPrevious()
-
getCurrent
public Object[] getCurrent()
-
getPreviousLocation
public org.pentaho.di.core.gui.Point[] getPreviousLocation()
-
getCurrentLocation
public org.pentaho.di.core.gui.Point[] getCurrentLocation()
-
getPreviousIndex
public int[] getPreviousIndex()
-
getCurrentIndex
public int[] getCurrentIndex()
-
setNextAlso
public void setNextAlso(boolean nextAlso)
Indicate that the next operations needs to be undone too.- Parameters:
nextAlso
- The nextAlso to set.
-
getNextAlso
public boolean getNextAlso()
Get the status of the nextAlso flag.- Returns:
- true if the next operation needs to be done too.
-
-