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
FieldsModifier and TypeFieldDescriptionprotected Throwableprotected booleanprotected org.apache.jena.sparql.core.Transactionalprotected org.apache.jena.query.TxnTypeFields inherited from class org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapperBase
delegate -
Constructor Summary
ConstructorsConstructorDescriptionUpdateExecWrapperTxn(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 TypeMethodDescriptionvoidGives a wrapper a change to perform an action after execution.voidGives a wrapper a change to perform an action before execution.voidGives 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.UpdateExecwrap(T decoratee, org.apache.jena.sparql.core.Transactional transactional) Methods inherited from class org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapperBase
getDelegateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.dataaccess.sparql.exec.update.UpdateExecWrapper
executeMethods 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
-
txnType
protected org.apache.jena.query.TxnType txnType
-
-
Constructor Details
-
UpdateExecWrapperTxn
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:UpdateExecWrapperGives a wrapper a change to perform an action before execution. This method should only be called byUpdateExecWrapper.execute()and never manually. -
onException
Description copied from interface:UpdateExecWrapperGives a wrapper a change to perform an action in case of an execution during execution. This method should only be called byUpdateExecWrapper.execute()and never manually. -
afterExec
public void afterExec()Description copied from interface:UpdateExecWrapperGives a wrapper a change to perform an action after execution. This method should only be called byUpdateExecWrapper.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)
-