org.topbraid.core.graph
Class BufferingGraph

java.lang.Object
  extended by org.topbraid.core.graph.DelegatingGraph
      extended by org.topbraid.core.graph.BufferingGraph
All Implemented Interfaces:
com.hp.hpl.jena.graph.Graph, com.hp.hpl.jena.graph.GraphAdd, BatchOperationGraph

public class BufferingGraph
extends DelegatingGraph

A Graph that buffers all add/remove calls before they are committed to the delegate.

Author:
Holger Knublauch

Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Constructor Summary
BufferingGraph(com.hp.hpl.jena.graph.Graph delegate)
           
 
Method Summary
 void add(com.hp.hpl.jena.graph.Triple t)
           
 void commit()
           
 boolean contains(com.hp.hpl.jena.graph.Node s, com.hp.hpl.jena.graph.Node p, com.hp.hpl.jena.graph.Node o)
           
 boolean contains(com.hp.hpl.jena.graph.Triple t)
           
 void delete(com.hp.hpl.jena.graph.Triple t)
           
 com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.Node s, com.hp.hpl.jena.graph.Node p, com.hp.hpl.jena.graph.Node o)
           
 com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.TripleMatch m)
           
 int getBufferedTriplesCount()
           
 com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
           
 void rollBack()
           
 int size()
           
 
Methods inherited from class org.topbraid.core.graph.DelegatingGraph
add, close, delete, dependsOn, getBulkUpdateHandler, getCapabilities, getDelegate, getEventManager, getPrefixMapping, getReifier, getStatisticsHandler, getTerminalDelegate, getTransactionHandler, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferingGraph

public BufferingGraph(com.hp.hpl.jena.graph.Graph delegate)
Method Detail

add

public void add(com.hp.hpl.jena.graph.Triple t)
         throws com.hp.hpl.jena.shared.AddDeniedException
Specified by:
add in interface com.hp.hpl.jena.graph.GraphAdd
Overrides:
add in class DelegatingGraph
Throws:
com.hp.hpl.jena.shared.AddDeniedException

commit

public void commit()

contains

public boolean contains(com.hp.hpl.jena.graph.Node s,
                        com.hp.hpl.jena.graph.Node p,
                        com.hp.hpl.jena.graph.Node o)
Specified by:
contains in interface com.hp.hpl.jena.graph.Graph
Overrides:
contains in class DelegatingGraph

contains

public boolean contains(com.hp.hpl.jena.graph.Triple t)
Specified by:
contains in interface com.hp.hpl.jena.graph.Graph
Overrides:
contains in class DelegatingGraph

delete

public void delete(com.hp.hpl.jena.graph.Triple t)
            throws com.hp.hpl.jena.shared.DeleteDeniedException
Specified by:
delete in interface com.hp.hpl.jena.graph.Graph
Overrides:
delete in class DelegatingGraph
Throws:
com.hp.hpl.jena.shared.DeleteDeniedException

find

public com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.Node s,
                                                           com.hp.hpl.jena.graph.Node p,
                                                           com.hp.hpl.jena.graph.Node o)
Specified by:
find in interface com.hp.hpl.jena.graph.Graph
Overrides:
find in class DelegatingGraph

find

public com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.TripleMatch m)
Specified by:
find in interface com.hp.hpl.jena.graph.Graph
Overrides:
find in class DelegatingGraph

getBufferedTriplesCount

public int getBufferedTriplesCount()

queryHandler

public com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
Specified by:
queryHandler in interface com.hp.hpl.jena.graph.Graph
Overrides:
queryHandler in class DelegatingGraph

rollBack

public void rollBack()

size

public int size()
Specified by:
size in interface com.hp.hpl.jena.graph.Graph
Overrides:
size in class DelegatingGraph