|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.ojb.broker.util.event.OjbEvent
org.apache.ojb.broker.PersistenceBrokerEvent
org.apache.ojb.broker.PBStateEvent
The PBStateEvent encapsulates information about
the life-cycle/transaction demarcation of the used PersistenceBroker
instance.
| Nested Class Summary | |
static class |
PBStateEvent.Type
Enum-like class for the event types. |
| Field Summary | |
static int |
KEY_AFTER_BEGIN
Denotes an event that happens after a transaction was started. |
static int |
KEY_AFTER_COMMIT
Denotes an event that happens after a transaction was comitted. |
static int |
KEY_AFTER_OPEN
Denotes an event that happens after a broker was opened. |
static int |
KEY_AFTER_ROLLBACK
Denotes an event that happens after a transaction was rolled back. |
static int |
KEY_BEFORE_BEGIN
Denotes an event that happens before a transaction will be started. |
static int |
KEY_BEFORE_CLOSE
Denotes an event that happens before the broker will be closed. |
static int |
KEY_BEFORE_COMMIT
Denotes an event that happens before a transaction will be comitted. |
static int |
KEY_BEFORE_ROLLBACK
Denotes an event that happens before a transaction will be rolled back. |
| Constructor Summary | |
PBStateEvent(PersistenceBroker broker,
PBStateEvent.Type eventType)
Creates a new event instance. |
|
| Method Summary | |
PBStateEvent.Type |
getEventType()
Returns the event type. |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.ojb.broker.PersistenceBrokerEvent |
getTriggeringBroker |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int KEY_BEFORE_CLOSE
public static final int KEY_BEFORE_BEGIN
public static final int KEY_BEFORE_COMMIT
public static final int KEY_BEFORE_ROLLBACK
public static final int KEY_AFTER_BEGIN
public static final int KEY_AFTER_COMMIT
public static final int KEY_AFTER_OPEN
public static final int KEY_AFTER_ROLLBACK
| Constructor Detail |
public PBStateEvent(PersistenceBroker broker,
PBStateEvent.Type eventType)
broker - The brokereventType - The type of the event| Method Detail |
public java.lang.String toString()
public PBStateEvent.Type getEventType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||