Package org.apache.cayenne
Interface DataChannelFilter
- All Superinterfaces:
DataChannelQueryFilter
,DataChannelSyncFilter
@Deprecated
public interface DataChannelFilter
extends DataChannelSyncFilter, DataChannelQueryFilter
Deprecated.
An interface of a filter that allows to intercept DataChannel operations. Filters allow
to implement chains of custom processors around a DataChannel, that can be used for
security, monitoring, business logic, providing context to lifecycle event listeners,
etc.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(DataChannel channel) Deprecated.onQuery
(ObjectContext originatingContext, Query query, DataChannelFilterChain filterChain) Deprecated.default QueryResponse
onQuery
(ObjectContext originatingContext, Query query, DataChannelQueryFilterChain filterChain) Deprecated.Adapter method that allows to use old DataChannelFilter as new query filteronSync
(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelFilterChain filterChain) Deprecated.default GraphDiff
onSync
(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelSyncFilterChain filterChain) Deprecated.Adapter method that allows to use old DataChannelFilter as new sync filter
-
Method Details
-
init
Deprecated. -
onQuery
QueryResponse onQuery(ObjectContext originatingContext, Query query, DataChannelFilterChain filterChain) Deprecated. -
onSync
GraphDiff onSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelFilterChain filterChain) Deprecated. -
onQuery
default QueryResponse onQuery(ObjectContext originatingContext, Query query, DataChannelQueryFilterChain filterChain) Deprecated.Adapter method that allows to use old DataChannelFilter as new query filter- Specified by:
onQuery
in interfaceDataChannelQueryFilter
- Parameters:
originatingContext
- originating context of queryquery
- that is processedfilterChain
- chain of query filters to invoke after this filter- Returns:
- query response
-
onSync
default GraphDiff onSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelSyncFilterChain filterChain) Deprecated.Adapter method that allows to use old DataChannelFilter as new sync filter- 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:
-
DataChannelQueryFilter
andDataChannelSyncFilter