| |
|
| org.apache.ojb.broker.PersistenceBrokerEvent org.apache.ojb.broker.PBLifeCycleEvent
PBLifeCycleEvent | final public class PBLifeCycleEvent extends PersistenceBrokerEvent (Code) | | The PBLifeCycleEvent encapsulates information about
the life-cycle of a persistent object.
NOTE:
Because of performance reasons OJB intern reuse instances of this class
by reset target object.
author: Armin Waibel version: $Id: PBLifeCycleEvent.java,v 1.5.2.1 2005/12/21 22:22:07 tomdz Exp $ |
Inner Class :public static class Type | |
Field Summary | |
final public static int | TYPE_AFTER_DELETE Denotes an event that happens after the deletion of an object. | final public static int | TYPE_AFTER_INSERT Denotes an event that happens after the insertion of an object. | final public static int | TYPE_AFTER_LOOKUP Denotes an event that happens after the lookup of an object. | final public static int | TYPE_AFTER_UPDATE Denotes an event that happens after the update of an object. | final public static int | TYPE_BEFORE_DELETE Denotes an event that happens before the deletion of an object. | final public static int | TYPE_BEFORE_INSERT Denotes an event that happens before the insertion of an object. | final public static int | TYPE_BEFORE_UPDATE Denotes an event that happens before the update of an object. |
TYPE_AFTER_DELETE | final public static int TYPE_AFTER_DELETE(Code) | | Denotes an event that happens after the deletion of an object.
|
TYPE_AFTER_INSERT | final public static int TYPE_AFTER_INSERT(Code) | | Denotes an event that happens after the insertion of an object.
|
TYPE_AFTER_LOOKUP | final public static int TYPE_AFTER_LOOKUP(Code) | | Denotes an event that happens after the lookup of an object.
|
TYPE_AFTER_UPDATE | final public static int TYPE_AFTER_UPDATE(Code) | | Denotes an event that happens after the update of an object.
|
TYPE_BEFORE_DELETE | final public static int TYPE_BEFORE_DELETE(Code) | | Denotes an event that happens before the deletion of an object.
|
TYPE_BEFORE_INSERT | final public static int TYPE_BEFORE_INSERT(Code) | | Denotes an event that happens before the insertion of an object.
|
TYPE_BEFORE_UPDATE | final public static int TYPE_BEFORE_UPDATE(Code) | | Denotes an event that happens before the update of an object.
|
PBLifeCycleEvent | public PBLifeCycleEvent(PersistenceBroker broker, Object target, Type eventType)(Code) | | Creates a new event instance.
Parameters: broker - The broker Parameters: target - The object which caused the event Parameters: eventType - The type of the event |
PBLifeCycleEvent | public PBLifeCycleEvent(PersistenceBroker broker, Type type)(Code) | | Creates a new event instance.
Parameters: broker - The broker Parameters: type - The type of the event |
getEventType | public Type getEventType()(Code) | | Returns the event type.
The event type |
getTarget | public Object getTarget()(Code) | | Returns the object that caused the event.
The object |
setTarget | public void setTarget(Object obj)(Code) | | Set the object that caused the event.
Parameters: obj - The object |
|
|
|