|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject i3.dragos.core.services.events.DragosEvent i3.dragos.core.services.transactions.TransactionEvent
public class TransactionEvent
TransactionEvents are fired before and after a transaction changes its state.
Field Summary | |
---|---|
static int |
AFTER_BEGIN
Event type constant: A transaction has begun. |
static int |
AFTER_COMMIT
Event type constant: A Transaction was committed. |
static int |
AFTER_CREATE
Event type constant: A Transaction was just created. |
static int |
AFTER_PRECOMMIT
Event type constant: A Transaction was precommitted. |
static int |
AFTER_ROLLBACK
Event type constant: A Transaction was rolled back. |
static int |
AFTER_ROLLBACK_ONLY
Event type constant: A Transaction was marked "rollback only". |
static int |
BEFORE_BEGIN
Event type constant: A transaction is about to begin. |
static int |
BEFORE_COMMIT
Event type constant: A Transaction is about to be committed. |
static int |
BEFORE_PRECOMMIT
Event type constant: A Transaction is about to be precommitted. |
static int |
BEFORE_ROLLBACK
Event type constant: A Transaction is about to be rolled back. |
static int |
BEFORE_ROLLBACK_ONLY
Event type constant: A Transaction is about to be marked "rollback only". |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
TransactionEvent(Transaction transaction,
int eventType)
Creates a TransactionEvent. |
Method Summary | |
---|---|
Transaction |
getTransaction()
Returns the Transaction in which this event occured. |
java.lang.String |
toString()
|
Methods inherited from class i3.dragos.core.services.events.DragosEvent |
---|
getEventClass, getEventType |
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 |
---|
public static final int AFTER_CREATE
public static final int BEFORE_BEGIN
public static final int AFTER_BEGIN
public static final int BEFORE_PRECOMMIT
public static final int AFTER_PRECOMMIT
public static final int BEFORE_COMMIT
public static final int AFTER_COMMIT
public static final int BEFORE_ROLLBACK_ONLY
public static final int AFTER_ROLLBACK_ONLY
public static final int BEFORE_ROLLBACK
public static final int AFTER_ROLLBACK
Constructor Detail |
---|
public TransactionEvent(Transaction transaction, int eventType)
transaction
- The Transaction where the event occured.eventType
- The type of event.Method Detail |
---|
public Transaction getTransaction()
Transaction
in which this event occured.
Transaction
in which this event occured.public java.lang.String toString()
toString
in class DragosEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |