public abstract class ChangedObjectEvent extends Event implements java.io.Serializable
| Constructor and Description |
|---|
ChangedObjectEvent(EventType eventType,
long timestamp,
int eventId,
java.lang.Class objectType)
Creates a new instance of ChangedObjectEvent
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getChangedObject()
Get the new version of the changed object which has been changed by this event
|
java.lang.Class |
getObjectType()
Get the type of the changed objects
|
void |
setChangedObject(java.lang.Object changedObj)
Set the new version of the changed object
|
abstract void |
setPKInfo(int numKey1,
int numKey2,
java.lang.String strKey1,
java.lang.String strKey2)
Set the primary key information of the changed object into the event.
|
java.lang.String |
toString() |
getEventId, getTimestamp, getTypepublic ChangedObjectEvent(EventType eventType, long timestamp, int eventId, java.lang.Class objectType)
eventType - type of eventtimestamp - timestamp when the event occuredeventId - id of the eventobjectType - type of the changed objectspublic java.lang.Class getObjectType()
public void setChangedObject(java.lang.Object changedObj)
changedObj - the changed objectjava.lang.IllegalArgumentException - if changedObj is nulljava.lang.IllegalArgumentException - if the class object type for the event is not
assignable from the class of changedObjgetObjectType()public java.lang.Object getChangedObject()
public abstract void setPKInfo(int numKey1,
int numKey2,
java.lang.String strKey1,
java.lang.String strKey2)
This method is called from the the native part of jgdi to fill the primary key information into a del event
numKey1 - first numerical primary key of the deleted objectnumKey2 - second numerical primary key of the deleted objectstrKey1 - first string primary key of the deleted objectstrKey2 - second string primary key of the deleted objectCopyright © 2007 Sun Microsystems, Inc. All rights reserved.