org.apache.ojb.broker
Class PBStateEvent.Type

java.lang.Object
  extended by org.apache.ojb.broker.PBStateEvent.Type
Enclosing class:
PBStateEvent

public static class PBStateEvent.Type
extends java.lang.Object

Enum-like class for the event types.


Field Summary
static PBStateEvent.Type AFTER_BEGIN
          Denotes an event that happens after a transaction was started.
static PBStateEvent.Type AFTER_COMMIT
          Denotes an event that happens after a transaction was comitted.
static PBStateEvent.Type AFTER_OPEN
          Denotes an event that happens after a broker was opened.
static PBStateEvent.Type AFTER_ROLLBACK
          Denotes an event that happens after a transaction was rolled back.
static PBStateEvent.Type BEFORE_BEGIN
          Denotes an event that happens before a transaction will be started.
static PBStateEvent.Type BEFORE_CLOSE
          Denotes an event that happens before the broker will be closed.
static PBStateEvent.Type BEFORE_COMMIT
          Denotes an event that happens before a transaction will be comitted.
static PBStateEvent.Type BEFORE_ROLLBACK
          Denotes an event that happens before a transaction will be rolled back.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
 java.lang.String toString()
          
 int typeId()
          Returns the type id.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BEFORE_BEGIN

public static final PBStateEvent.Type BEFORE_BEGIN
Denotes an event that happens before a transaction will be started.


AFTER_BEGIN

public static final PBStateEvent.Type AFTER_BEGIN
Denotes an event that happens after a transaction was started.


BEFORE_COMMIT

public static final PBStateEvent.Type BEFORE_COMMIT
Denotes an event that happens before a transaction will be comitted.


AFTER_COMMIT

public static final PBStateEvent.Type AFTER_COMMIT
Denotes an event that happens after a transaction was comitted.


BEFORE_ROLLBACK

public static final PBStateEvent.Type BEFORE_ROLLBACK
Denotes an event that happens before a transaction will be rolled back.


AFTER_ROLLBACK

public static final PBStateEvent.Type AFTER_ROLLBACK
Denotes an event that happens after a transaction was rolled back.


AFTER_OPEN

public static final PBStateEvent.Type AFTER_OPEN
Denotes an event that happens after a broker was opened.


BEFORE_CLOSE

public static final PBStateEvent.Type BEFORE_CLOSE
Denotes an event that happens before the broker will be closed.

Method Detail

equals

public final boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()

Overrides:
hashCode in class java.lang.Object

typeId

public final int typeId()
Returns the type id.

Returns:
The type id

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


(C) 2002 - 2006 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