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 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.
 
Constructor Summary
protected PBStateEvent.Type(int type)
          Creates a new instance.
 
Method Summary
 boolean equals(Object obj)
          
 int hashCode()
          
 String toString()
          
 int typeId()
          Returns the type id.
 
Methods inherited from class java.lang.Object
clone, finalize, 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.

Constructor Detail

PBStateEvent.Type

protected PBStateEvent.Type(int type)
Creates a new instance.

Parameters:
type - The type value
Method Detail

equals

public final boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public final int hashCode()

Overrides:
hashCode in class Object

typeId

public final int typeId()
Returns the type id.

Returns:
The type id

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.