| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.openjpa.event.TransactionEvent
public class TransactionEvent
A transactional event. The event source is the Broker whose
 transaction state changed.
| Field Summary | |
|---|---|
| static int | AFTER_BEGINEvent type signifying that a transaction has just begun. | 
| static int | AFTER_COMMITEvent type signifying that the transaction has committed. | 
| static int | AFTER_COMMIT_COMPLETEEvent type signifying that the commit has completey ended and the transaction is no longer active. | 
| static int | AFTER_FLUSHEvent type signifying that changes have been flushed to the datastore. | 
| static int | AFTER_ROLLBACKEvent type signifying that the transaction was rolled back. | 
| static int | AFTER_ROLLBACK_COMPLETEEvent type signifying that the rollback has completey ended and the transaction is no longer active. | 
| static int | AFTER_STATE_TRANSITIONSEvent type signifying that all state transitions have been made. | 
| static int | BEFORE_COMMITEvent type signifying that the transaction is about to be committed. | 
| static int | BEFORE_FLUSHEvent type signifying that changes are about to be flushed to the datastore. | 
| Fields inherited from class java.util.EventObject | 
|---|
| source | 
| Constructor Summary | |
|---|---|
| TransactionEvent(Broker broker,
                 int type,
                 java.util.Collection objs,
                 java.util.Collection addClss,
                 java.util.Collection updateClss,
                 java.util.Collection deleteClss)Constructor. | |
| Method Summary | |
|---|---|
|  java.util.Collection | getDeletedTypes()Return the unmodifiable the set of classes of persistence capable objects that were deleted in the transaction. | 
|  java.util.Collection | getPersistedTypes()Return the unmodifiable the set of classes of persistence capable objects that were created in the transaction. | 
|  java.util.Collection | getTransactionalObjects()Return the unmodifiable set of persistence capable objects participating in the transaction. | 
|  int | getType()Return the type of event. | 
|  java.util.Collection | getUpdatedTypes()Return the unmodifiable the set of classes of persistence capable objects that were modified in the transaction. | 
| Methods inherited from class java.util.EventObject | 
|---|
| getSource, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int AFTER_BEGIN
public static final int BEFORE_FLUSH
public static final int AFTER_FLUSH
public static final int BEFORE_COMMIT
BEFORE_FLUSH event for the
 transaction, so that you can differentiate between flushes for commits
 and other flushes.
public static final int AFTER_COMMIT
public static final int AFTER_ROLLBACK
public static final int AFTER_STATE_TRANSITIONS
public static final int AFTER_COMMIT_COMPLETE
public static final int AFTER_ROLLBACK_COMPLETE
| Constructor Detail | 
|---|
public TransactionEvent(Broker broker,
                        int type,
                        java.util.Collection objs,
                        java.util.Collection addClss,
                        java.util.Collection updateClss,
                        java.util.Collection deleteClss)
broker - the event sourcetype - the event typeobjs - transactional objectsaddClss - classes of added instancesupdateClss - classes of updated instancesdeleteClss - classes of deleted instances| Method Detail | 
|---|
public int getType()
public java.util.Collection getTransactionalObjects()
public java.util.Collection getPersistedTypes()
public java.util.Collection getUpdatedTypes()
public java.util.Collection getDeletedTypes()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||