com.hp.hpl.jena.sparql.modify
Class GraphStoreNullTransactional

java.lang.Object
  extended by com.hp.hpl.jena.sparql.core.DatasetGraphBase
      extended by com.hp.hpl.jena.sparql.core.DatasetGraphQuad
          extended by com.hp.hpl.jena.sparql.modify.GraphStoreNull
              extended by com.hp.hpl.jena.sparql.modify.GraphStoreNullTransactional
All Implemented Interfaces:
DatasetGraph, Transactional, GraphStore, Closeable

public class GraphStoreNullTransactional
extends GraphStoreNull
implements Transactional

A transactional black hole for Quads, add as many as you want and it will forget them all. Useful for testing.


Constructor Summary
GraphStoreNullTransactional()
           
 
Method Summary
 void abort()
          Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)
 void begin(ReadWrite readWrite)
          Start either a READ or WRITE transaction
 void commit()
          Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)
 void end()
          Finish the transaction - if a write transaction and commit() has not been called, then abort
 boolean isInTransaction()
          Say whether a transaction is active
 
Methods inherited from class com.hp.hpl.jena.sparql.modify.GraphStoreNull
add, addGraph, delete, find, findNG, finishRequest, getDefaultGraph, getGraph, startRequest, toDataset
 
Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphQuad
listGraphNodes, removeGraph
 
Methods inherited from class com.hp.hpl.jena.sparql.core.DatasetGraphBase
add, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, isEmpty, setDefaultGraph, size, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.core.DatasetGraph
add, close, contains, contains, containsGraph, delete, deleteAny, find, find, getContext, getLock, isEmpty, listGraphNodes, removeGraph, setDefaultGraph, size
 

Constructor Detail

GraphStoreNullTransactional

public GraphStoreNullTransactional()
Method Detail

begin

public void begin(ReadWrite readWrite)
Description copied from interface: Transactional
Start either a READ or WRITE transaction

Specified by:
begin in interface Transactional

commit

public void commit()
Description copied from interface: Transactional
Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)

Specified by:
commit in interface Transactional

abort

public void abort()
Description copied from interface: Transactional
Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)

Specified by:
abort in interface Transactional

isInTransaction

public boolean isInTransaction()
Description copied from interface: Transactional
Say whether a transaction is active

Specified by:
isInTransaction in interface Transactional

end

public void end()
Description copied from interface: Transactional
Finish the transaction - if a write transaction and commit() has not been called, then abort

Specified by:
end in interface Transactional


Licenced under the Apache License, Version 2.0