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 SummaryModifier and Type Method Description voidinit(DataChannel channel)Deprecated.QueryResponseonQuery(ObjectContext originatingContext, Query query, DataChannelFilterChain filterChain)Deprecated.default QueryResponseonQuery(ObjectContext originatingContext, Query query, DataChannelQueryFilterChain filterChain)Deprecated.Adapter method that allows to use old DataChannelFilter as new query filterGraphDiffonSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelFilterChain filterChain)Deprecated.default GraphDiffonSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelSyncFilterChain filterChain)Deprecated.Adapter method that allows to use old DataChannelFilter as new sync filter
- 
Method Details- 
initDeprecated.
- 
onQueryQueryResponse onQuery(ObjectContext originatingContext, Query query, DataChannelFilterChain filterChain)Deprecated.
- 
onSyncGraphDiff onSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelFilterChain filterChain)Deprecated.
- 
onQuerydefault QueryResponse onQuery(ObjectContext originatingContext, Query query, DataChannelQueryFilterChain filterChain)Deprecated.Adapter method that allows to use old DataChannelFilter as new query filter- Specified by:
- onQueryin interface- DataChannelQueryFilter
- Parameters:
- originatingContext- originating context of query
- query- that is processed
- filterChain- chain of query filters to invoke after this filter
- Returns:
- query response
 
- 
onSyncdefault 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:
- onSyncin interface- DataChannelSyncFilter
- Parameters:
- originatingContext- originating context of changes
- changes- diff that is being processed
- syncType- 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:
- DataChannel.FLUSH_NOCASCADE_SYNC,- DataChannel.FLUSH_CASCADE_SYNC,- DataChannel.ROLLBACK_CASCADE_SYNC
 
 
- 
DataChannelQueryFilterandDataChannelSyncFilter