org.datanucleus.jdo
Class FieldInstanceLifecycleEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.jdo.listener.InstanceLifecycleEvent
          extended by org.datanucleus.jdo.FieldInstanceLifecycleEvent
All Implemented Interfaces:
java.io.Serializable

public class FieldInstanceLifecycleEvent
extends javax.jdo.listener.InstanceLifecycleEvent

Extension to InstanceLifecycleEvent where the event can relate to specific field providing access to the field names that are affected by this event.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.jdo.listener.InstanceLifecycleEvent
ATTACH, CLEAR, CREATE, DELETE, DETACH, DIRTY, LOAD, STORE
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FieldInstanceLifecycleEvent(java.lang.Object obj, int eventType, java.lang.Object otherObj, java.lang.String[] fieldNames)
          Constructor.
 
Method Summary
 java.lang.String[] getFieldNames()
          Accessor for the field names affected by this event
 
Methods inherited from class javax.jdo.listener.InstanceLifecycleEvent
getDetachedInstance, getEventType, getPersistentInstance, getSource, getTarget
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldInstanceLifecycleEvent

public FieldInstanceLifecycleEvent(java.lang.Object obj,
                                   int eventType,
                                   java.lang.Object otherObj,
                                   java.lang.String[] fieldNames)
Constructor.

Parameters:
obj - The object on which the event occurs
eventType - Type of event
otherObj - The other object
fieldNames - Names of the fields affected
Method Detail

getFieldNames

public java.lang.String[] getFieldNames()
Accessor for the field names affected by this event

Returns:
The field names


Copyright © 2010. All Rights Reserved.