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()

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
    Notification that a quad or triple is added.
    void
    addPrefix(org.apache.jena.graph.Node gn, String prefix, String uriStr)
    Add a prefix.
    void
    delete(org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o)
    Notification that a quad or triple is deleted.
    final void
    deletePrefix(org.apache.jena.graph.Node gn, String prefix)
    Delete a prefix.
    void
    header(String field, org.apache.jena.graph.Node value)
    Header field.
    final void
    Indicator that a transaction aborts
    final void
    Indicator that a transaction begins, or becomes a write transaction.
    final void
    Indicator that a transaction commits.

    Methods inherited from class org.apache.jena.rdfpatch.changes.RDFChangesWrapper

    finish, segment, start

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait