public class ChangeSetFilter extends Object implements DataChannelFilter
DataChannelFilter that provides interested parties with a thread-local access
to the current commit changeset. It will only return a non-null change set when commit
within the scope of the filter
onSync(ObjectContext, GraphDiff, int, DataChannelFilterChain) method. The
filter is intended to be used by pre-commit and post-commit listeners.| Constructor and Description |
|---|
ChangeSetFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(DataChannel channel) |
QueryResponse |
onQuery(ObjectContext originatingContext,
Query query,
DataChannelFilterChain filterChain) |
GraphDiff |
onSync(ObjectContext originatingContext,
GraphDiff changes,
int syncType,
DataChannelFilterChain filterChain) |
static ChangeSet |
preCommitChangeSet() |
public static ChangeSet preCommitChangeSet()
public void init(DataChannel channel)
init in interface DataChannelFilterpublic QueryResponse onQuery(ObjectContext originatingContext, Query query, DataChannelFilterChain filterChain)
onQuery in interface DataChannelFilterpublic GraphDiff onSync(ObjectContext originatingContext, GraphDiff changes, int syncType, DataChannelFilterChain filterChain)
onSync in interface DataChannelFilterCopyright © 2001–2014 Apache Cayenne. All rights reserved.