Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.jbo
Class TransactionStateEvent

java.lang.Object
  extended by oracle.adfnmc.util.eventing.EventObject
      extended by oracle.jbo.JboEvent
          extended by oracle.jbo.TransactionStateEvent

public class TransactionStateEvent
extends JboEvent

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


Field Summary
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 oracle.adfnmc.util.eventing.EventObject
source
 
Constructor Summary
TransactionStateEvent(Transaction source, int eventType)
          Creates a transacation state event.
TransactionStateEvent(Transaction source, int eventType, boolean clearCache)
          Creates a transacation state event.
 
Method Summary
 int getEventType()
          Gets the event type.
 boolean isClearCache()
           
 java.lang.String toString()
          Internal: For debugging only.
 
Methods inherited from class oracle.adfnmc.util.eventing.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, 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.

See Also:
Constant Field Values

EVENT_TYPE_COMMIT

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

See Also:
Constant Field Values
Constructor Detail

TransactionStateEvent

public TransactionStateEvent(Transaction source,
                             int eventType)
Creates a transacation state event.

Parameters:
source - the publisher of the event (a Transaction).
eventType - the event type. It should be one of the EVENT_TYPE_... constants.

TransactionStateEvent

public TransactionStateEvent(Transaction source,
                             int eventType,
                             boolean clearCache)
Creates a transacation state event.

Parameters:
source - the publisher of the event (a Transaction).
eventType - the event type. It should be one of the EVENT_TYPE_... constants.
clearCache - indicates whether the cache needs to be cleared after end of transaction or not.
Method Detail

getEventType

public int getEventType()
Gets the event type.

Returns:
the event type. It should be one of the EVENT_TYPE_... constants.

isClearCache

public boolean isClearCache()

toString

public java.lang.String toString()
Internal: For debugging only.

Overrides:
toString in class EventObject
Returns:
a diagnostic string.

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.