org.apache.ojb.broker
Class PBLifeCycleEvent
java.lang.Object
java.util.EventObject
org.apache.ojb.broker.util.event.OjbEvent
org.apache.ojb.broker.PersistenceBrokerEvent
org.apache.ojb.broker.PBLifeCycleEvent
- All Implemented Interfaces:
- java.io.Serializable
- public final class PBLifeCycleEvent
- extends PersistenceBrokerEvent
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.
- Version:
- $Id: PBLifeCycleEvent.java,v 1.3 2004/02/16 21:02:36 brj Exp $
- Author:
- Armin Waibel
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_BEFORE_INSERT
public static final int TYPE_BEFORE_INSERT
- See Also:
- Constant Field Values
TYPE_BEFORE_DELETE
public static final int TYPE_BEFORE_DELETE
- See Also:
- Constant Field Values
TYPE_BEFORE_UPDATE
public static final int TYPE_BEFORE_UPDATE
- See Also:
- Constant Field Values
TYPE_AFTER_UPDATE
public static final int TYPE_AFTER_UPDATE
- See Also:
- Constant Field Values
TYPE_AFTER_DELETE
public static final int TYPE_AFTER_DELETE
- See Also:
- Constant Field Values
TYPE_AFTER_LOOKUP
public static final int TYPE_AFTER_LOOKUP
- See Also:
- Constant Field Values
TYPE_AFTER_INSERT
public static final int TYPE_AFTER_INSERT
- See Also:
- Constant Field Values
PBLifeCycleEvent
public PBLifeCycleEvent(PersistenceBroker broker,
java.lang.Object target,
PBLifeCycleEvent.Type eventType)
PBLifeCycleEvent
public PBLifeCycleEvent(PersistenceBroker broker,
PBLifeCycleEvent.Type type)
getPersitenceBrokerAware
public PersistenceBrokerAware getPersitenceBrokerAware()
- Try to find an
PersistenceBrokerAware
target object.
setTarget
public void setTarget(java.lang.Object obj)
- Set the object the event belongs to.
getTarget
public java.lang.Object getTarget()
- Returns the object the event belongs to.
toString
public java.lang.String toString()
getEventType
public PBLifeCycleEvent.Type getEventType()
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14