Class DatasetGraphTxn

java.lang.Object
org.apache.jena.sparql.core.DatasetGraphWrapper
org.apache.jena.tdb1.transaction.DatasetGraphTxn
All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable, org.apache.jena.atlas.lib.Sync, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.core.Transactional

public class DatasetGraphTxn extends org.apache.jena.sparql.core.DatasetGraphWrapper
A DatasetGraph that is a single transaction. It does not support transactions. It is the DatasetGraph aspect of a Transaction (single use).
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional

    org.apache.jena.sparql.core.Transactional.Promote
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    begin(org.apache.jena.query.ReadWrite mode)
     
    void
     
    void
    end()
     
     
    Return the view (storage) for this transaction
    boolean
     
     

    Methods inherited from class org.apache.jena.sparql.core.DatasetGraphWrapper

    add, add, addGraph, begin, begin, clear, close, contains, contains, containsGraph, delete, delete, deleteAny, find, find, find, findNG, getBase, getBaseForQuery, getContext, getDefaultGraph, getGraph, getLock, getUnionGraph, getWrapped, isEmpty, isInTransaction, listGraphNodes, prefixes, promote, removeGraph, size, supportsTransactionAbort, supportsTransactions, sync, transactionMode, transactionType, unwrap

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.apache.jena.sparql.core.DatasetGraph

    addAll, stream, stream

    Methods inherited from interface org.apache.jena.sparql.core.Transactional

    calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite
  • Method Details

    • getTransaction

      public Transaction getTransaction()
    • getView

      public DatasetGraphTDB getView()
      Return the view (storage) for this transaction
    • begin

      public void begin(org.apache.jena.query.ReadWrite mode)
      Specified by:
      begin in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      begin in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • promote

      public boolean promote()
      Specified by:
      promote in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      promote in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • commit

      public void commit()
      Specified by:
      commit in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      commit in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • abort

      public void abort()
      Specified by:
      abort in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      abort in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • end

      public void end()
      Specified by:
      end in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      end in class org.apache.jena.sparql.core.DatasetGraphWrapper