Class RDFChangesSuppressEmpty

java.lang.Object
org.apache.jena.rdfpatch.changes.RDFChangesWrapper
org.apache.jena.rdfpatch.system.RDFChangesSuppressEmpty
All Implemented Interfaces:
RDFChanges

public class RDFChangesSuppressEmpty extends RDFChangesWrapper
Note whether a change has happened and call different operations on txnCommit A change is a call to one of the dataset-changing operations, add, delete, addPrefix, deletePrefix. Setting headers is not consided a change.

If a change has been made, txnChangeCommit() is called, otherwise txnNoChangeCommit() is called. The implementation of these methods must call doCommit(), to accept the change or doAbort() to cancel it.

A common case is to suppress empty transactions. To do this, call doAbort() in txnNoChangeCommit()