public class TransactionFilter extends Object implements DataChannelSyncFilter
DataChannelSyncFilter
that provides transactions.Modifier and Type | Field and Description |
---|---|
protected TransactionManager |
transactionManager |
Constructor and Description |
---|
TransactionFilter() |
Modifier and Type | Method and Description |
---|---|
GraphDiff |
onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType,
DataChannelSyncFilterChain filterChain) |
protected TransactionManager transactionManager
public GraphDiff onSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelSyncFilterChain filterChain)
onSync
in interface DataChannelSyncFilter
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 filterDataChannel.FLUSH_NOCASCADE_SYNC
,
DataChannel.FLUSH_CASCADE_SYNC
,
DataChannel.ROLLBACK_CASCADE_SYNC
Copyright © 2001–2019 Apache Cayenne. All rights reserved.