com.hardcode.gdbms.engine.data.edition
Class EditionEvent

java.lang.Object
  extended by com.hardcode.gdbms.engine.data.GDBMSEvent
      extended by com.hardcode.gdbms.engine.data.edition.FieldEditionEvent
          extended by com.hardcode.gdbms.engine.data.edition.EditionEvent

public class EditionEvent
extends FieldEditionEvent

This class stores information about the change in the contents of a DataSource. It stores the row index where the change was made and which the action done was. If the type is MODIFY then rowIndex and field index store where the modification was done. If the type is DELETE or INSERT then fieldIndex is set to -1

Author:
Fernando González Cortés

Field Summary
static int DELETE
           
static int INSERT
           
static int MODIFY
           
 
Constructor Summary
EditionEvent(long rowIndex, int fieldIndex, int type, DataSource ds, boolean undoRedo)
           
 
Method Summary
 long getRowIndex()
           
 int getType()
           
 boolean isUndoRedo()
           
 
Methods inherited from class com.hardcode.gdbms.engine.data.edition.FieldEditionEvent
getFieldIndex
 
Methods inherited from class com.hardcode.gdbms.engine.data.GDBMSEvent
getDataSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODIFY

public static final int MODIFY
See Also:
Constant Field Values

DELETE

public static final int DELETE
See Also:
Constant Field Values

INSERT

public static final int INSERT
See Also:
Constant Field Values
Constructor Detail

EditionEvent

public EditionEvent(long rowIndex,
                    int fieldIndex,
                    int type,
                    DataSource ds,
                    boolean undoRedo)
Method Detail

getRowIndex

public long getRowIndex()

getType

public int getType()

isUndoRedo

public boolean isUndoRedo()


Copyright © 2005-2006 . All Rights Reserved.