com.ibm.as400.access
Class RecordDescriptionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.as400.access.RecordDescriptionEvent
All Implemented Interfaces:
java.io.Serializable

public class RecordDescriptionEvent
extends java.util.EventObject

The RecordDescriptionEvent class represents a RecordDescriptionEvent. This class is used to fire events from the record description classes, RecordFormat and Record to listeners that have implemented the RecordDescriptionListener interface.

See Also:
Serialized Form

Field Summary
static int FIELD_DESCRIPTION_ADDED
          Event id indicating that a field description has been added to a RecordFormat object.
static int FIELD_MODIFIED
          Event id indicating that a field value has been modified in a Record object.
static int KEY_FIELD_DESCRIPTION_ADDED
          Event id indicating that a key field description has been added to a RecordFormat object.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RecordDescriptionEvent(java.lang.Object source, int id)
          Constructs a RecordDescriptionEvent object.
 
Method Summary
 int getID()
          Returns the identifier for this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIELD_DESCRIPTION_ADDED

public static final int FIELD_DESCRIPTION_ADDED
Event id indicating that a field description has been added to a RecordFormat object.
See Also:
RecordFormat.addFieldDescription(com.ibm.as400.access.FieldDescription)

KEY_FIELD_DESCRIPTION_ADDED

public static final int KEY_FIELD_DESCRIPTION_ADDED
Event id indicating that a key field description has been added to a RecordFormat object.
See Also:
RecordFormat.addKeyFieldDescription(int)

FIELD_MODIFIED

public static final int FIELD_MODIFIED
Event id indicating that a field value has been modified in a Record object.
See Also:
Record.setField(int, java.lang.Object), Record.setContents(byte[])
Constructor Detail

RecordDescriptionEvent

public RecordDescriptionEvent(java.lang.Object source,
                              int id)
Constructs a RecordDescriptionEvent object. It uses the source and ID specified.
Parameters:
source - The object where the event originated.
id - The event identifier. The id must be a valid event id for this class.
Method Detail

getID

public int getID()
Returns the identifier for this event.
Returns:
The ID.