Class QueryExecutionWrapperTxn<T extends org.apache.jena.query.QueryExecution>
java.lang.Object
org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase<T>
org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperTxn<T>
- All Implemented Interfaces:
AutoCloseable,QueryExecutionWrapper,org.apache.jena.query.QueryExecution
public class QueryExecutionWrapperTxn<T extends org.apache.jena.query.QueryExecution>
extends QueryExecutionWrapperBase<T>
A query execution that starts a transaction before the actual query execution
and performs the commit/rollback action upon close.
- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Throwableprotected booleanprotected org.apache.jena.sparql.core.TransactionalFields inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase
decoratee -
Constructor Summary
ConstructorsConstructorDescriptionQueryExecutionWrapperTxn(T decoratee, org.apache.jena.sparql.core.Transactional transactional) -
Method Summary
Methods inherited from class org.aksw.jenax.dataaccess.sparql.execution.query.QueryExecutionWrapperBase
afterExec, execAsk, execConstruct, execConstruct, execConstructDataset, execConstructDataset, execConstructQuads, execConstructTriples, execDescribe, execDescribe, execDescribeTriples, execJson, execJsonItems, execSelect, getDelegate, getQueryStringMethods 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.execution.query.QueryExecutionWrapper
abort, getContext, getDataset, getQuery, getTimeout1, getTimeout2, isClosed, tryGetDelegate, unwrap
-
Field Details
-
transactional
protected org.apache.jena.sparql.core.Transactional transactional -
startedTxnHere
protected boolean startedTxnHere -
seenThrowable
-
-
Constructor Details
-
QueryExecutionWrapperTxn
public QueryExecutionWrapperTxn(T decoratee, org.apache.jena.sparql.core.Transactional transactional)
-
-
Method Details
-
beforeExec
protected void beforeExec()- Overrides:
beforeExecin classQueryExecutionWrapperBase<T extends org.apache.jena.query.QueryExecution>
-
onException
- Overrides:
onExceptionin classQueryExecutionWrapperBase<T extends org.apache.jena.query.QueryExecution>
-
close
public void close() -
wrap
public static <T extends org.apache.jena.query.QueryExecution> org.apache.jena.query.QueryExecution wrap(T decoratee, org.apache.jena.sparql.core.Transactional transactional)
-