Class UpdateExecWrapperTxn<T extends org.apache.jena.update.UpdateProcessor>

java.lang.Object
org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapperBase<T>
org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapperTxn<T>
All Implemented Interfaces:
UpdateExecWrapper, UpdateProcessorWrapper<org.apache.jena.update.UpdateProcessor>, org.apache.jena.sparql.exec.UpdateExec, org.apache.jena.update.UpdateProcessor
Direct Known Subclasses:
DatasetExecWrapperTxn

public class UpdateExecWrapperTxn<T extends org.apache.jena.update.UpdateProcessor> extends UpdateExecWrapperBase<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Throwable
     
    protected boolean
     
    protected org.apache.jena.sparql.core.Transactional
     
    protected org.apache.jena.query.TxnType
     

    Fields inherited from class org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapperBase

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
    UpdateExecWrapperTxn(T decoratee, org.apache.jena.sparql.core.Transactional transactional)
    Note: Default txnType changed from WRITE to READ_PROMOTE with jenax 5.3.0 in order to allow for use concurrent processing inside of update statements using Jena's Service Enhancer plugin.
    UpdateExecWrapperTxn(T decoratee, org.apache.jena.sparql.core.Transactional transactional, org.apache.jena.query.TxnType txnType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Gives a wrapper a change to perform an action after execution.
    void
    Gives a wrapper a change to perform an action before execution.
    void
    Gives a wrapper a change to perform an action in case of an execution during execution.
    static <T extends org.apache.jena.update.UpdateProcessor>
    org.apache.jena.sparql.exec.UpdateExec
    wrap(T decoratee, org.apache.jena.sparql.core.Transactional transactional)
     

    Methods inherited from class org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapperBase

    getDelegate

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapper

    execute

    Methods inherited from interface org.apache.jena.update.UpdateProcessor

    getUpdateRequest, getUpdateRequestString

    Methods inherited from interface org.aksw.jenax.dataaccess.sparql.execution.update.UpdateProcessorWrapper

    abort, getContext
  • Field Details

    • transactional

      protected org.apache.jena.sparql.core.Transactional transactional
    • startedTxnHere

      protected boolean startedTxnHere
    • seenThrowable

      protected Throwable seenThrowable
    • txnType

      protected org.apache.jena.query.TxnType txnType
  • Constructor Details

    • UpdateExecWrapperTxn

      public UpdateExecWrapperTxn(T decoratee, org.apache.jena.sparql.core.Transactional transactional)
      Note: Default txnType changed from WRITE to READ_PROMOTE with jenax 5.3.0 in order to allow for use concurrent processing inside of update statements using Jena's Service Enhancer plugin. INSERT { ... } WHERE { SERVICE <collect:concurrent:> { ... } }.
    • UpdateExecWrapperTxn

      public UpdateExecWrapperTxn(T decoratee, org.apache.jena.sparql.core.Transactional transactional, org.apache.jena.query.TxnType txnType)
  • Method Details

    • beforeExec

      public void beforeExec()
      Description copied from interface: UpdateExecWrapper
      Gives a wrapper a change to perform an action before execution. This method should only be called by UpdateExecWrapper.execute() and never manually.
    • onException

      public void onException(Exception e)
      Description copied from interface: UpdateExecWrapper
      Gives a wrapper a change to perform an action in case of an execution during execution. This method should only be called by UpdateExecWrapper.execute() and never manually.
    • afterExec

      public void afterExec()
      Description copied from interface: UpdateExecWrapper
      Gives a wrapper a change to perform an action after execution. This method should only be called by UpdateExecWrapper.execute() and never manually.
    • wrap

      public static <T extends org.apache.jena.update.UpdateProcessor> org.apache.jena.sparql.exec.UpdateExec wrap(T decoratee, org.apache.jena.sparql.core.Transactional transactional)