public class TransactionStateEvent extends JboEvent
RowSet or RowSetIterator to inform its listeners when the row set is closed or reset.| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
TransactionStateEvent(Transaction source, int eventType)
Creates a transacation state event.
|
TransactionStateEvent(Transaction source, int eventType, boolean clearCache)
Creates a transacation state event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEventType()
Gets the event type.
|
boolean |
isClearCache() |
java.lang.String |
toString()
Internal: For debugging only.
|
public static final int EVENT_TYPE_ROLLBACK
public static final int EVENT_TYPE_COMMIT
public TransactionStateEvent(Transaction source, int eventType)
source - the publisher of the event (a Transaction).eventType - the event type. It should be one of the EVENT_TYPE_... constants.public TransactionStateEvent(Transaction source, int eventType, boolean clearCache)
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.public int getEventType()
EVENT_TYPE_... constants.public boolean isClearCache()
public java.lang.String toString()
toString in class java.util.EventObject