diff --git a/Sda2/Ref/Fig/accountTransferSum.png b/Sda2/Ref/Fig/accountTransferSum.png new file mode 100644 index 0000000000000000000000000000000000000000..d38f3427bbeb8a7e1025f17ff82eef3cbf042276 Binary files /dev/null and b/Sda2/Ref/Fig/accountTransferSum.png differ diff --git a/Sda2/sda2.xml b/Sda2/sda2.xml index 9a2d65029c1917ef0dc7546cdfaa46365666238d..f958acfa1fd29422aae33720ef4da76eba092629 100644 --- a/Sda2/sda2.xml +++ b/Sda2/sda2.xml @@ -25,8 +25,8 @@ </info> <chapter xml:id="ldap"> - <title><xi:include href="../acronyms.xml" - xpointer="element(glo_LDAP)"/></title> + <title><xi:include href="../acronyms.xml" xpointer="element(glo_LDAP)"/> + and <xi:include href="../acronyms.xml" xpointer="glo_Jdbc"/></title> <section xml:id="ldapIntro"> <title>Getting started with <xi:include href="../acronyms.xml" @@ -643,6 +643,72 @@ tty:x:5: </qandadiv> </qandaset> </section> + + <section xml:id="transactionsInJdbc"> + <title>Transactions in <xi:include href="../acronyms.xml" + xpointer="glo_Jdbc"/></title> + + <para>You may review some remarks on SQL standard isolation level + definitions:</para> + + <itemizedlist> + <listitem> + <para>Javadoc:</para> + + <itemizedlist> + <listitem> + <para><link + xlink:href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#TRANSACTION_READ_UNCOMMITTED">TRANSACTION_READ_UNCOMMITTED</link></para> + </listitem> + + <listitem> + <para><link + xlink:href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#TRANSACTION_READ_COMMITTED">TRANSACTION_READ_COMMITTED</link></para> + </listitem> + + <listitem> + <para><link + xlink:href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#TRANSACTION_REPEATABLE_READ">TRANSACTION_READ_REPEATABLE_READ</link></para> + </listitem> + + <listitem> + <para><link + xlink:href="http://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#TRANSACTION_SERIALIZABLE">TRANSACTION_READ_SERIALIZABLE</link></para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> + <para><link + xlink:href="http://www.oracle.com/technetwork/issue-archive/2005/05-nov/o65asktom-082389.html">On + Transaction Isolation Levels (Oracle)</link></para> + </listitem> + + <listitem> + <para><link + xlink:href="http://technet.microsoft.com/en-us/library/ms378149(v=sql.110).aspx">Understanding + Isolation Levels (Microsoft)</link></para> + </listitem> + </itemizedlist> + + <qandaset defaultlabel="qanda" xml:id="qandaJdbcIsolation"> + <title>Accounts and balances</title> + + <qandadiv> + <qandaentry> + <question> + <para>Consider the following simple schema of accounts keeping + customer balances:</para> + + <programlisting language="none">CREATE TABLE Account ( + number INT NOT NULL PRIMARY KEY + ,balance INT NOT NULL +)</programlisting> + </question> + </qandaentry> + </qandadiv> + </qandaset> + </section> </chapter> <chapter xml:id="jpa">