java.lang.Object
io.ebeaninternal.api.TransactionEvent
- All Implemented Interfaces:
Serializable
Holds information for a transaction. There is one TransactionEvent instance
per Transaction instance.
When the associated Transaction commits or rollback this information is sent to the TransactionEventManager.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(TransactionEventTable table) voidvoidaddDeleteById(BeanDescriptor<?> desc, Object id) voidaddDeleteByIdList(BeanDescriptor<?> desc, List<Object> idList) voidaddListenerNotify(PersistRequestBean<?> request) Add post commit listeners.buildCacheChanges(TransactionManager manager) Build and return the cache changeSet.booleanisLocal()Return true if this was a local transaction.Return the list of PersistRequestBean's for this transaction.Return the CacheChangeSet that we add cache notification messages to.
-
Constructor Details
-
TransactionEvent
public TransactionEvent()Create the TransactionEvent, one per Transaction.
-
-
Method Details
-
addDeleteById
-
addDeleteByIdList
-
deleteByIdMap
-
isLocal
public boolean isLocal()Return true if this was a local transaction. Returns false if this transaction originated on another server in the cluster. -
listenerNotify
Return the list of PersistRequestBean's for this transaction. -
eventTables
-
add
-
add
-
addListenerNotify
Add post commit listeners. Watch this for large transactions. -
buildCacheChanges
Build and return the cache changeSet. -
obtainCacheChangeSet
Return the CacheChangeSet that we add cache notification messages to.We want to add to this change set as we process requests allowing the PersistRequestBean to be garbage collected for large transactions.
-