i3.dragos.core.services.transactions
Class TransactionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by i3.dragos.core.services.events.DragosEvent
          extended by i3.dragos.core.services.transactions.TransactionEvent
All Implemented Interfaces:
java.io.Serializable

public class TransactionEvent
extends DragosEvent

TransactionEvents are fired before and after a transaction changes its state.

Author:
Ernest Hammerschmidt <ernest@i3.informatik.rwth-aachen.de>, Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
See Also:
Serialized Form

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

AFTER_CREATE

public static final int AFTER_CREATE
Event type constant: A Transaction was just created.

See Also:
Constant Field Values

BEFORE_BEGIN

public static final int BEFORE_BEGIN
Event type constant: A transaction is about to begin.

See Also:
Constant Field Values

AFTER_BEGIN

public static final int AFTER_BEGIN
Event type constant: A transaction has begun.

See Also:
Constant Field Values

BEFORE_PRECOMMIT

public static final int BEFORE_PRECOMMIT
Event type constant: A Transaction is about to be precommitted.

See Also:
Constant Field Values

AFTER_PRECOMMIT

public static final int AFTER_PRECOMMIT
Event type constant: A Transaction was precommitted.

See Also:
Constant Field Values

BEFORE_COMMIT

public static final int BEFORE_COMMIT
Event type constant: A Transaction is about to be committed.

See Also:
Constant Field Values

AFTER_COMMIT

public static final int AFTER_COMMIT
Event type constant: A Transaction was committed.

See Also:
Constant Field Values

BEFORE_ROLLBACK_ONLY

public static final int BEFORE_ROLLBACK_ONLY
Event type constant: A Transaction is about to be marked "rollback only".

See Also:
Constant Field Values

AFTER_ROLLBACK_ONLY

public static final int AFTER_ROLLBACK_ONLY
Event type constant: A Transaction was marked "rollback only".

See Also:
Constant Field Values

BEFORE_ROLLBACK

public static final int BEFORE_ROLLBACK
Event type constant: A Transaction is about to be rolled back.

See Also:
Constant Field Values

AFTER_ROLLBACK

public static final int AFTER_ROLLBACK
Event type constant: A Transaction was rolled back.

See Also:
Constant Field Values
Constructor Detail

TransactionEvent

public TransactionEvent(Transaction transaction,
                        int eventType)
Creates a TransactionEvent.

Parameters:
transaction - The Transaction where the event occured.
eventType - The type of event.
Method Detail

getTransaction

public Transaction getTransaction()
Returns the Transaction in which this event occured.

Returns:
the Transaction in which this event occured.

toString

public java.lang.String toString()

Overrides:
toString in class DragosEvent


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.