org.apache.ojb.broker
Class PBStateEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.apache.ojb.broker.util.event.OjbEvent
          extended byorg.apache.ojb.broker.PersistenceBrokerEvent
              extended byorg.apache.ojb.broker.PBStateEvent
All Implemented Interfaces:
java.io.Serializable

public final class PBStateEvent
extends PersistenceBrokerEvent

The PBStateEvent encapsulates information about the life-cycle/transaction demarcation of the used PersistenceBroker instance.

Version:
$Id: PBStateEvent.java,v 1.5 2004/04/04 23:53:30 brianm Exp $
Author:
Armin Waibel
See Also:
Serialized Form

Nested Class Summary
static class PBStateEvent.Type
           
 
Field Summary
static int KEY_AFTER_BEGIN
           
static int KEY_AFTER_COMMIT
           
static int KEY_AFTER_OPEN
           
static int KEY_AFTER_ROLLBACK
           
static int KEY_BEFORE_BEGIN
           
static int KEY_BEFORE_CLOSE
           
static int KEY_BEFORE_COMMIT
           
static int KEY_BEFORE_ROLLBACK
           
 
Constructor Summary
PBStateEvent(PersistenceBroker broker, PBStateEvent.Type eventType)
           
 
Method Summary
 PBStateEvent.Type getEventType()
           
 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

KEY_BEFORE_CLOSE

public static final int KEY_BEFORE_CLOSE
See Also:
Constant Field Values

KEY_BEFORE_BEGIN

public static final int KEY_BEFORE_BEGIN
See Also:
Constant Field Values

KEY_BEFORE_COMMIT

public static final int KEY_BEFORE_COMMIT
See Also:
Constant Field Values

KEY_BEFORE_ROLLBACK

public static final int KEY_BEFORE_ROLLBACK
See Also:
Constant Field Values

KEY_AFTER_BEGIN

public static final int KEY_AFTER_BEGIN
See Also:
Constant Field Values

KEY_AFTER_COMMIT

public static final int KEY_AFTER_COMMIT
See Also:
Constant Field Values

KEY_AFTER_OPEN

public static final int KEY_AFTER_OPEN
See Also:
Constant Field Values

KEY_AFTER_ROLLBACK

public static final int KEY_AFTER_ROLLBACK
See Also:
Constant Field Values
Constructor Detail

PBStateEvent

public PBStateEvent(PersistenceBroker broker,
                    PBStateEvent.Type eventType)
Method Detail

toString

public java.lang.String toString()

getEventType

public PBStateEvent.Type getEventType()


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2