Package org.apache.cayenne.tx
Class TransactionFilter
java.lang.Object
org.apache.cayenne.tx.TransactionFilter
- All Implemented Interfaces:
DataChannelSyncFilter
A
DataChannelSyncFilter
that provides transactions.- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononSync
(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelSyncFilterChain filterChain)
-
Field Details
-
transactionManager
-
-
Constructor Details
-
TransactionFilter
public TransactionFilter()
-
-
Method Details
-
onSync
public GraphDiff onSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelSyncFilterChain filterChain) - Specified by:
onSync
in interfaceDataChannelSyncFilter
- Parameters:
originatingContext
- originating context of changeschanges
- diff that is being processedsyncType
- type of sync; possible values:DataChannel.FLUSH_NOCASCADE_SYNC
,DataChannel.FLUSH_CASCADE_SYNC
,DataChannel.ROLLBACK_CASCADE_SYNC
filterChain
- chain of sync filters to invoke after this filter- Returns:
- final context diff
- See Also:
-