blob: d4cd9fe63c3db6491af0ec7e1b6b0c6738d10f61 [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>TransactionalTrait (Apache Jena ARQ)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: module: org.apache.jena.arq, package: org.apache.jena.sparql.core, interface: TransactionalTrait">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="../../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../module-summary.html">Module</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="class-use/TransactionalTrait.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li><a href="#nested-class-summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="module-label-in-type">Module</span>&nbsp;<a href="../../../../../module-summary.html">org.apache.jena.arq</a></div>
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.jena.sparql.core</a></div>
<h1 title="Interface TransactionalTrait" class="title">Interface TransactionalTrait</h1>
</div>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>All Superinterfaces:</dt>
<dd><code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
<hr>
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">TransactionalTrait</span><span class="extends-implements">
extends <a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></span></div>
<div class="block">Provide <a href="Transactional.html" title="interface in org.apache.jena.sparql.core"><code>Transactional</code></a> as an indirection to another <a href="Transactional.html" title="interface in org.apache.jena.sparql.core"><code>Transactional</code></a>.</div>
<dl class="notes">
<dt>API Note:</dt>
<dd>Downside - the "getTxn" method is public. The alternative is
copy-and-paste. See the <code>ExTransactions</code> in the jena-examples module.</dd>
</dl>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<li>
<section class="nested-class-summary" id="nested-class-summary">
<h2>Nested Class Summary</h2>
<div class="inherited-list">
<h2 id="nested-classes-inherited-from-class-org.apache.jena.sparql.core.Transactional">Nested classes/interfaces inherited from interface&nbsp;org.apache.jena.sparql.core.<a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></h2>
<code><a href="Transactional.Promote.html" title="enum class in org.apache.jena.sparql.core">Transactional.Promote</a></code></div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</button><button id="method-summary-table-tab5" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab5', 3)" class="table-tab">Default Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#abort()" class="member-name-link">abort</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#begin(org.apache.jena.query.ReadWrite)" class="member-name-link">begin</a><wbr>(<a href="../../query/ReadWrite.html" title="enum class in org.apache.jena.query">ReadWrite</a>&nbsp;mode)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Start either a READ or WRITE transaction.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#begin(org.apache.jena.query.TxnType)" class="member-name-link">begin</a><wbr>(<a href="../../query/TxnType.html" title="enum class in org.apache.jena.query">TxnType</a>&nbsp;txnType)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Start a transaction.<br/>
READ or WRITE transactions start in that state and do not change for the
lifetime of the transaction.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#commit()" class="member-name-link">commit</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#end()" class="member-name-link">end</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Finish the transaction - if a write transaction and commit() has not been called, then abort</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#getTxn()" class="member-name-link">getTxn</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#isInTransaction()" class="member-name-link">isInTransaction</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Say whether inside a transaction.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#promote(org.apache.jena.sparql.core.Transactional.Promote)" class="member-name-link">promote</a><wbr>(<a href="Transactional.Promote.html" title="enum class in org.apache.jena.sparql.core">Transactional.Promote</a>&nbsp;txnType)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Attempt to promote a transaction from "read" mode to "write" and the transaction.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#supportsTransactionAbort()" class="member-name-link">supportsTransactionAbort</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">&nbsp;</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#supportsTransactions()" class="member-name-link">supportsTransactions</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">&nbsp;</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="../../query/ReadWrite.html" title="enum class in org.apache.jena.query">ReadWrite</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#transactionMode()" class="member-name-link">transactionMode</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Return the current mode of the transaction - "read" or "write".</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="../../query/TxnType.html" title="enum class in org.apache.jena.query">TxnType</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#transactionType()" class="member-name-link">transactionType</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Return the transaction type used in <code>begin(TxnType)</code>.</div>
</div>
</div>
</div>
</div>
<div class="inherited-list">
<h3 id="methods-inherited-from-class-org.apache.jena.sparql.core.Transactional">Methods inherited from interface&nbsp;org.apache.jena.sparql.core.<a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></h3>
<code><a href="Transactional.html#begin()">begin</a>, <a href="Transactional.html#calc(org.apache.jena.query.TxnType,java.util.function.Supplier)">calc</a>, <a href="Transactional.html#calculate(java.util.function.Supplier)">calculate</a>, <a href="Transactional.html#calculateRead(java.util.function.Supplier)">calculateRead</a>, <a href="Transactional.html#calculateWrite(java.util.function.Supplier)">calculateWrite</a>, <a href="Transactional.html#exec(org.apache.jena.query.TxnType,java.lang.Runnable)">exec</a>, <a href="Transactional.html#execute(java.lang.Runnable)">execute</a>, <a href="Transactional.html#executeRead(java.lang.Runnable)">executeRead</a>, <a href="Transactional.html#executeWrite(java.lang.Runnable)">executeWrite</a>, <a href="Transactional.html#promote()">promote</a></code></div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="getTxn()">
<h3>getTxn</h3>
<div class="member-signature"><span class="return-type"><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></span>&nbsp;<span class="element-name">getTxn</span>()</div>
</section>
</li>
<li>
<section class="detail" id="begin(org.apache.jena.query.TxnType)">
<h3>begin</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">begin</span><wbr><span class="parameters">(<a href="../../query/TxnType.html" title="enum class in org.apache.jena.query">TxnType</a>&nbsp;txnType)</span></div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#begin(org.apache.jena.query.TxnType)">Transactional</a></code></span></div>
<div class="block">Start a transaction.<br/>
READ or WRITE transactions start in that state and do not change for the
lifetime of the transaction.
<ul>
<li><code>WRITE</code>: this guarantees a WRITE will complete if <code>commit()</code> is
called. The same as <code>begin(ReadWrite.WRITE)</code>.
<li><code>READ</code>: the transaction can not promote to WRITE,ensuring read-only
access to the data. The same as <code>begin(ReadWrite.READ)</code>.
<li><code>READ_PROMOTE</code>: the transaction will go from "read" to "write" if an
update is attempted and if the dataset has not been changed by another write
transaction. See also <a href="Transactional.html#promote()"><code>Transactional.promote()</code></a>.
<li><code>READ_COMMITTED_PROMOTE</code>: Use this with care. The promotion will
succeed but changes from other transactions become visible.
</ul>
Read committed: at the point transaction attempts promotion from "read" to
"write", the system checks if the dataset has change since the transaction started
(called <code>begin</code>). If <code>READ_PROMOTE</code>, the dataset must not have
changed; if <code>READ_COMMITTED_PROMOTE</code> any intermediate changes are
visible but the application can not assume any data it has read in the
transaction is the same as it was at the point the transaction started.
<p>
This operation is optional and some implementations may throw
a <a href="../JenaTransactionException.html" title="class in org.apache.jena.sparql"><code>JenaTransactionException</code></a> exception for some or all <a href="../../query/TxnType.html" title="enum class in org.apache.jena.query"><code>TxnType</code></a> values.
<p>
See <a href="Transactional.html#begin(org.apache.jena.query.ReadWrite)"><code>Transactional.begin(ReadWrite)</code></a> for a form that is required of implementations.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#begin(org.apache.jena.query.TxnType)">begin</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="begin(org.apache.jena.query.ReadWrite)">
<h3>begin</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">begin</span><wbr><span class="parameters">(<a href="../../query/ReadWrite.html" title="enum class in org.apache.jena.query">ReadWrite</a>&nbsp;mode)</span></div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#begin(org.apache.jena.query.ReadWrite)">Transactional</a></code></span></div>
<div class="block">Start either a READ or WRITE transaction.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#begin(org.apache.jena.query.ReadWrite)">begin</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="commit()">
<h3>commit</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">commit</span>()</div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#commit()">Transactional</a></code></span></div>
<div class="block">Commit a transaction - finish the transaction and make any changes permanent (if a "write" transaction)</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#commit()">commit</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="promote(org.apache.jena.sparql.core.Transactional.Promote)">
<h3>promote</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">promote</span><wbr><span class="parameters">(<a href="Transactional.Promote.html" title="enum class in org.apache.jena.sparql.core">Transactional.Promote</a>&nbsp;txnType)</span></div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#promote(org.apache.jena.sparql.core.Transactional.Promote)">Transactional</a></code></span></div>
<div class="block">Attempt to promote a transaction from "read" mode to "write" and the transaction. This
method allows the form of promotion to be specified. The transaction must not have been started
with <code>READ</code>, which is read-only.
<p>
An argument of <code>READ_PROMOTE</code> treats the promotion as if the transaction was started
with <code>READ_PROMOTE</code> (any other writer commiting since the transaction started
blocks promotion) and <code>READ_COMMITTED_PROMOTE</code> treats the promotion as if the transaction was started
with <code>READ_COMMITTED_PROMOTE</code> (intemediate writer commits become visible).
<p>
Returns "true" if the transaction is in write mode after the call. The method
always succeeds of the transaction is already "write".
<p>
This method returns true if a <code>READ_PROMOTE</code> or
<code>READ_COMMITTED_PROMOTE</code> is promoted.
<p>
This method returns false if a <code>READ_PROMOTE</code> can't be promoted - the
transaction is still valid and in "read" mode.
<p>
This method throws an exception if there is an attempt to promote a <code>READ</code>
transaction.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#promote(org.apache.jena.sparql.core.Transactional.Promote)">promote</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="abort()">
<h3>abort</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">abort</span>()</div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#abort()">Transactional</a></code></span></div>
<div class="block">Abort a transaction - finish the transaction and undo any changes (if a "write" transaction)</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#abort()">abort</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="isInTransaction()">
<h3>isInTransaction</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">isInTransaction</span>()</div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#isInTransaction()">Transactional</a></code></span></div>
<div class="block">Say whether inside a transaction.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#isInTransaction()">isInTransaction</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="end()">
<h3>end</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">end</span>()</div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#end()">Transactional</a></code></span></div>
<div class="block">Finish the transaction - if a write transaction and commit() has not been called, then abort</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#end()">end</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="transactionMode()">
<h3>transactionMode</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type"><a href="../../query/ReadWrite.html" title="enum class in org.apache.jena.query">ReadWrite</a></span>&nbsp;<span class="element-name">transactionMode</span>()</div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#transactionMode()">Transactional</a></code></span></div>
<div class="block">Return the current mode of the transaction - "read" or "write".
If the caller is not in a transaction, this method returns null.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#transactionMode()">transactionMode</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="transactionType()">
<h3>transactionType</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type"><a href="../../query/TxnType.html" title="enum class in org.apache.jena.query">TxnType</a></span>&nbsp;<span class="element-name">transactionType</span>()</div>
<div class="block"><span class="descfrm-type-label">Description copied from interface:&nbsp;<code><a href="Transactional.html#transactionType()">Transactional</a></code></span></div>
<div class="block">Return the transaction type used in <code>begin(TxnType)</code>.
If the caller is not in a transaction, this method returns null.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="Transactional.html#transactionType()">transactionType</a></code>&nbsp;in interface&nbsp;<code><a href="Transactional.html" title="interface in org.apache.jena.sparql.core">Transactional</a></code></dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="supportsTransactions()">
<h3>supportsTransactions</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">supportsTransactions</span>()</div>
</section>
</li>
<li>
<section class="detail" id="supportsTransactionAbort()">
<h3>supportsTransactionAbort</h3>
<div class="member-signature"><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">supportsTransactionAbort</span>()</div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Licensed under the Apache License, Version 2.0</small></p>
</footer>
</div>
</div>
</body>
</html>