public final class PBStateEvent extends PersistenceBrokerEvent
PBStateEvent
encapsulates information about
the life-cycle/transaction demarcation of the used PersistenceBroker
instance.Modifier and Type | Class and Description |
---|---|
static class |
PBStateEvent.Type
Enum-like class for the event types.
|
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PBStateEvent(PersistenceBroker broker,
PBStateEvent.Type eventType)
Creates a new event instance.
|
Modifier and Type | Method and Description |
---|---|
PBStateEvent.Type |
getEventType()
Returns the event type.
|
java.lang.String |
toString() |
getTriggeringBroker
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
public PBStateEvent(PersistenceBroker broker, PBStateEvent.Type eventType)
broker
- The brokereventType
- The type of the eventpublic java.lang.String toString()
toString
in class java.util.EventObject
public PBStateEvent.Type getEventType()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30