summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/spi
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-11-04 17:44:21 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-11-04 17:44:21 +0000
commit0a78be150e162aad34c19f233dc2f4ca71f61135 (patch)
treeaf6a18cac0541894b16a72782f3fb50f59c533a9 /src/main/java/com/amazon/carbonado/spi
parent9e4cd7e3af4ff5326fcb7a1dde3861f64badab41 (diff)
Support transaction isolation level of "none".
Diffstat (limited to 'src/main/java/com/amazon/carbonado/spi')
-rw-r--r--src/main/java/com/amazon/carbonado/spi/TransactionManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java
index 144b411..e8cc637 100644
--- a/src/main/java/com/amazon/carbonado/spi/TransactionManager.java
+++ b/src/main/java/com/amazon/carbonado/spi/TransactionManager.java
@@ -304,6 +304,8 @@ public abstract class TransactionManager<Txn> {
*
* @param parent optional parent transaction
* @param level required isolation level
+ * @return new transaction, parent transaction, or possibly null if required
+ * isolation level is none
*/
protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;
@@ -320,6 +322,8 @@ public abstract class TransactionManager<Txn> {
* @param level required isolation level
* @param timeout desired timeout for lock acquisition, never negative
* @param unit timeout unit, never null
+ * @return new transaction, parent transaction, or possibly null if required
+ * isolation level is none
*/
protected Txn createTxn(Txn parent, IsolationLevel level,
int timeout, TimeUnit unit)