Business Components

oracle.jbo
Class TransactionStateEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--oracle.jbo.JboEvent
              |
              +--oracle.jbo.TransactionStateEvent
All Implemented Interfaces:
java.io.Serializable

public class TransactionStateEvent
extends JboEvent

Generated by RowSet or RowSetIterator to inform its listeners when the row set is closed or reset.

See Also:
Serialized Form

Field Summary
TypeField
static int EVENT_TYPE_COMMIT
          The event type designating that the row set iterator has been closed.
static int EVENT_TYPE_ROLLBACK
          The event type designating that the row set iterator has been reset.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TransactionStateEvent(Transaction source, int eventType)
          Creates a row set management event.
 
Method Summary
TypeMethod
 int getEventType()
          Gets the event type.
 java.lang.String toString()
          Internal: For debugging only.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_TYPE_ROLLBACK

public static final int EVENT_TYPE_ROLLBACK
The event type designating that the row set iterator has been reset.

EVENT_TYPE_COMMIT

public static final int EVENT_TYPE_COMMIT
The event type designating that the row set iterator has been closed.
Constructor Detail

TransactionStateEvent

public TransactionStateEvent(Transaction source,
                             int eventType)
Creates a row set management event.
Parameters:
source - the publisher of the event.
eventType - the event type. It should be one of the EVENT_TYPE_... constants.
Method Detail

getEventType

public int getEventType()
Gets the event type.
Returns:
the event type. It should be one of the EVENT_TYPE_... constants.

toString

public java.lang.String toString()
Internal: For debugging only.
Overrides:
toString in class java.util.EventObject
Returns:
a diagnostic string.

Business Components