public class TransAction extends Object
step
hop
note
connection
Build an Undo/Redo class containing:
Type of change
Description of action
Link to previous infomation
| Constructor and Description | 
|---|
TransAction()  | 
| Modifier and Type | Method and 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()  | 
public static final int TYPE_ACTION_NONE
public static final int TYPE_ACTION_CHANGE_STEP
public static final int TYPE_ACTION_CHANGE_CONNECTION
public static final int TYPE_ACTION_CHANGE_HOP
public static final int TYPE_ACTION_CHANGE_NOTE
public static final int TYPE_ACTION_NEW_STEP
public static final int TYPE_ACTION_NEW_CONNECTION
public static final int TYPE_ACTION_NEW_HOP
public static final int TYPE_ACTION_NEW_NOTE
public static final int TYPE_ACTION_DELETE_STEP
public static final int TYPE_ACTION_DELETE_CONNECTION
public static final int TYPE_ACTION_DELETE_HOP
public static final int TYPE_ACTION_DELETE_NOTE
public static final int TYPE_ACTION_POSITION_STEP
public static final int TYPE_ACTION_POSITION_NOTE
public static final int TYPE_ACTION_CHANGE_JOB_ENTRY
public static final int TYPE_ACTION_CHANGE_JOB_HOP
public static final int TYPE_ACTION_NEW_JOB_ENTRY
public static final int TYPE_ACTION_NEW_JOB_HOP
public static final int TYPE_ACTION_DELETE_JOB_ENTRY
public static final int TYPE_ACTION_DELETE_JOB_HOP
public static final int TYPE_ACTION_POSITION_JOB_ENTRY
public static final int TYPE_ACTION_CHANGE_TABLEITEM
public static final int TYPE_ACTION_NEW_TABLEITEM
public static final int TYPE_ACTION_DELETE_TABLEITEM
public static final int TYPE_ACTION_POSITION_TABLEITEM
public static final int TYPE_ACTION_CHANGE_TABLE
public static final int TYPE_ACTION_CHANGE_RELATIONSHIP
public static final int TYPE_ACTION_NEW_TABLE
public static final int TYPE_ACTION_NEW_RELATIONSHIP
public static final int TYPE_ACTION_DELETE_TABLE
public static final int TYPE_ACTION_DELETE_RELATIONSHIP
public static final int TYPE_ACTION_POSITION_TABLE
public static final int TYPE_ACTION_NEW_SLAVE
public static final int TYPE_ACTION_CHANGE_SLAVE
public static final int TYPE_ACTION_DELETE_SLAVE
public static final int TYPE_ACTION_NEW_CLUSTER
public static final int TYPE_ACTION_CHANGE_CLUSTER
public static final int TYPE_ACTION_DELETE_CLUSTER
public static final int TYPE_ACTION_NEW_PARTITION
public static final int TYPE_ACTION_CHANGE_PARTITION
public static final int TYPE_ACTION_DELETE_PARTITION
public static final String[] desc_action
public void setDelete(Object[] prev, int[] idx)
public void setNew(Object[] prev, int[] position)
public void setPosition(Object[] obj, int[] idx, org.pentaho.di.core.gui.Point[] prev, org.pentaho.di.core.gui.Point[] curr)
public void setItemMove(int[] prev,
               int[] curr)
public int getType()
public Object[] getPrevious()
public Object[] getCurrent()
public org.pentaho.di.core.gui.Point[] getPreviousLocation()
public org.pentaho.di.core.gui.Point[] getCurrentLocation()
public int[] getPreviousIndex()
public int[] getCurrentIndex()
public void setNextAlso(boolean nextAlso)
nextAlso - The nextAlso to set.public boolean getNextAlso()