You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by bu...@apache.org on 2018/03/22 17:41:21 UTC

svn commit: r1027144 - in /websites/staging/jena/trunk/content: ./ documentation/txn/transactions_api.html documentation/txn/txn.html

Author: buildbot
Date: Thu Mar 22 17:41:20 2018
New Revision: 1027144

Log:
Staging update by buildbot for jena

Modified:
    websites/staging/jena/trunk/content/   (props changed)
    websites/staging/jena/trunk/content/documentation/txn/transactions_api.html
    websites/staging/jena/trunk/content/documentation/txn/txn.html

Propchange: websites/staging/jena/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Mar 22 17:41:20 2018
@@ -1 +1 @@
-1827516
+1827518

Modified: websites/staging/jena/trunk/content/documentation/txn/transactions_api.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/txn/transactions_api.html (original)
+++ websites/staging/jena/trunk/content/documentation/txn/transactions_api.html Thu Mar 22 17:41:20 2018
@@ -160,6 +160,7 @@ h2:hover > .headerlink, h3:hover > .head
 <li><a href="#api-for-transactions">API for Transactions</a><ul>
 <li><a href="#read-transactions">Read transactions</a></li>
 <li><a href="#write-transactions">Write transactions</a></li>
+<li><a href="#types-modes-promotion">Transaction promotion</a></li>
 </ul>
 </li>
 <li><a href="txn.html">Txn</a> - A higher level API to transactions</li>
@@ -258,7 +259,7 @@ dataset.</p>
 </pre></div>
 
 
-<h2 id="transaction-types-modes-and-promotion">Transaction Types, Modes and Promotion.<a class="headerlink" href="#transaction-types-modes-and-promotion" title="Permanent link">&para;</a></h2>
+<h2 id="types-modes-promotion">Transaction Types, Modes and Promotion.<a class="headerlink" href="#types-modes-promotion" title="Permanent link">&para;</a></h2>
 <p>Transaction hava type (enum <code>TxnType</code>) and a mode (enum <code>ReadWrite</code>).
 <code>TxnType.READ</code> and <code>TxnType.Write</code> strart the transaction in
 that mode and it is fixed fro the transaction's lifetime. A <code>READ</code>

Modified: websites/staging/jena/trunk/content/documentation/txn/txn.html
==============================================================================
--- websites/staging/jena/trunk/content/documentation/txn/txn.html (original)
+++ websites/staging/jena/trunk/content/documentation/txn/txn.html Thu Mar 22 17:41:20 2018
@@ -197,7 +197,7 @@ and exit code for a transaction, elimina
 </pre></div>
 
 
-<h2 id="usage-read-transactions">Usage: Read Transactions<a class="headerlink" href="#usage-read-transactions" title="Permanent link">&para;</a></h2>
+<h2 id="usage">Usage<a class="headerlink" href="#usage" title="Permanent link">&para;</a></h2>
 <p>This first example shows how to write a SPARQL query .</p>
 <div class="codehilite"><pre><span class="n">Dataset</span> <span class="n">ds</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
 <span class="n">Query</span> <span class="n">query</span> <span class="p">=</span> <span class="p">...</span> <span class="p">;</span>
@@ -279,6 +279,10 @@ results needs to be take:</p>
 </pre></div>
 
 
+<p>The functions <code>Txn.execute</code> and <code>Txn.calculate</code> start <code>READ_PROMOTE</code>
+transactions which start in "read" mode but convert to "write" mode if
+needed.  For details of transaction promtion see the
+c<a href="transactions_api.html#types-modes-promotion">section in the transaction API documentation</a>.</p>
 <h2 id="working-with-rdf-models">Working with RDF Models<a class="headerlink" href="#working-with-rdf-models" title="Permanent link">&para;</a></h2>
 <p>The unit of transaction is the dataset.  Model in datasets are just views of that dataset.
 Model should not be passed out of a transaction because they are still attached to the