comparison src/main/java/org/monetdb/jdbc/MonetSavepoint.java @ 451:3dfcd06fd8ba

Correcting typos in documentation text. Also improved the readability of the generated javadoc documents.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 04 Mar 2021 18:57:51 +0100 (2021-03-04)
parents bf9f6b6ecf40
children 6aa38e8c0f2d
comparison
equal deleted inserted replaced
450:b9f82064fe0c 451:3dfcd06fd8ba
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2021 MonetDB B.V. 6 * Copyright 1997 - July 2008 CWI, August 2008 - 2021 MonetDB B.V.
7 */ 7 */
8 8
9 package org.monetdb.jdbc; 9 package org.monetdb.jdbc;
10 10
11 import java.sql.Savepoint;
11 import java.sql.SQLException; 12 import java.sql.SQLException;
12 import java.util.concurrent.atomic.AtomicInteger; 13 import java.util.concurrent.atomic.AtomicInteger;
13 14
14 /** 15 /**
16 *<pre>
17 * A {@link Savepoint} suitable for the MonetDB database.
18 *
15 * The representation of a savepoint, which is a point within the current 19 * The representation of a savepoint, which is a point within the current
16 * transaction that can be referenced from the Connection.rollback method. 20 * transaction that can be referenced from the Connection.rollback() method.
17 * When a transaction is rolled back to a savepoint all changes made after 21 * When a transaction is rolled back to a savepoint all changes made after
18 * that savepoint are undone. 22 * that savepoint are undone.
19 * Savepoints can be either named or unnamed. Unnamed savepoints are 23 * Savepoints can be either named or unnamed. Unnamed savepoints are
20 * identified by an ID generated by the underlying data source. 24 * identified by an ID generated by the underlying data source.
21 * 25 *
22 * This little class is nothing more than a container for a name and/or 26 * This little class is nothing more than a container for a name and/or
23 * an id. Each instance of this class always has an id, which is used for 27 * an id. Each instance of this class always has an id, which is used for
24 * internal representation of the save point. 28 * internal representation of the save point.
25 * 29 *
26 * Because the IDs which get generated are a logical sequence, application 30 * Because the IDs which get generated are a logical sequence, application
27 * wide, two concurrent transactions are guaranteed to not to have the same 31 * wide, two concurrent transactions are guaranteed to not have the same
28 * save point identifiers. In this implementation the validity of save points 32 * save point identifiers. In this implementation the validity of save points
29 * is determined by the server, which makes this a light implementation. 33 * is determined by the server, which makes this a light implementation.
34 *</pre>
30 * 35 *
31 * @author Fabian Groffen 36 * @author Fabian Groffen
32 * @version 1.1 37 * @version 1.1
33 */ 38 */
34 public final class MonetSavepoint implements java.sql.Savepoint { 39 public final class MonetSavepoint implements Savepoint {
35 /** The id of the last created Savepoint */ 40 /** The id of the last created Savepoint */
36 private static final AtomicInteger highestId = new AtomicInteger(0); 41 private static final AtomicInteger highestId = new AtomicInteger(0);
37 42
38 /** The name of this Savepoint */ 43 /** The name of this Savepoint */
39 private final String name; 44 private final String name;