jsdai.lang
Class SdaiLoggingEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjsdai.lang.SdaiEvent
          extended byjsdai.lang.SdaiLoggingEvent
All Implemented Interfaces:
java.io.Serializable

public class SdaiLoggingEvent
extends SdaiEvent

This class informs SDAI listeners about changes done in the undo/redo log file. The subclasses of this class support iterating over entity instances for which some changes (due to their modification, creation, deletion or substitution) were recorded in the log file for subsequent undo/redo operations. The records are divided into segments called groups. The subclasses allow iteration over records of one group in one of the two directions: from the first record to the last one, or vice versa.

Since:
4.1.0
See Also:
Serialized Form

Field Summary
static int DISABLED_LOGGING
          Logging of data for subsequent undo/redo operations is disabled.
static int EMPTIED_HISTORY
          The undo/redo log file exists but is empty.
static int ENABLED_LOGGING
          Logging of data for subsequent undo/redo operations is enabled.
static int ENDED_UNDO_GROUP
          A group of records in undo/redo log file is ended.
static int REDONE_GROUP
          The redo operation is applied to one group of records in the undo/redo log file.
static int STARTING_UNDO_GROUP
          A group of records in undo/redo log file is started.
static int UNDONE_GROUP
          The undo operation is applied to one group of records in the undo/redo log file.
 
Fields inherited from class jsdai.lang.SdaiEvent
INVALID, ITEM_ALL, ITEM_CONTENTS, ITEM_HEADER, LOCKED_EXCLUSIVE_MODE, LOCKED_SHARED_MODE, MODIFIED, SERVER_DATA_CHANGED, UNLOCKED_ALL, UNLOCKED_EXCLUSIVE_MODE, UNLOCKED_SHARED_MODE
 
Method Summary
 SdaiOperationIterator getOperationIterator()
          Returns an object of SdaiOperationIterator with fields assigned to default values.
 
Methods inherited from class jsdai.lang.SdaiEvent
getArgument, getId, getItem
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENABLED_LOGGING

public static final int ENABLED_LOGGING
Logging of data for subsequent undo/redo operations is enabled.

See Also:
Constant Field Values

DISABLED_LOGGING

public static final int DISABLED_LOGGING
Logging of data for subsequent undo/redo operations is disabled.

See Also:
Constant Field Values

EMPTIED_HISTORY

public static final int EMPTIED_HISTORY
The undo/redo log file exists but is empty.

See Also:
Constant Field Values

STARTING_UNDO_GROUP

public static final int STARTING_UNDO_GROUP
A group of records in undo/redo log file is started.

See Also:
Constant Field Values

ENDED_UNDO_GROUP

public static final int ENDED_UNDO_GROUP
A group of records in undo/redo log file is ended.

See Also:
Constant Field Values

UNDONE_GROUP

public static final int UNDONE_GROUP
The undo operation is applied to one group of records in the undo/redo log file.

See Also:
Constant Field Values

REDONE_GROUP

public static final int REDONE_GROUP
The redo operation is applied to one group of records in the undo/redo log file.

See Also:
Constant Field Values
Method Detail

getOperationIterator

public SdaiOperationIterator getOperationIterator()
                                           throws SdaiException
Returns an object of SdaiOperationIterator with fields assigned to default values.

Returns:
the iterator over instances within one group of records in undo/redo log file.
Throws:
SdaiException

Copyright © LKSoftWare GmbH, 1999-2008