public class LocalTransactionManager extends java.lang.Object implements TransactionManager
| 修飾子とタイプ | フィールドと説明 |
|---|---|
(package private) static java.lang.ThreadLocal<LocalTransaction> |
transaction |
| コンストラクタと説明 |
|---|
LocalTransactionManager() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
checkAndClean() |
protected Transaction |
createTran(boolean readOnly,
boolean noTransaction) |
Transaction |
currentTransaction()
現在のトランザクションを取得します。
|
Transaction |
newTransaction()
新規にトランザクションを開始する。
|
Transaction |
newTransaction(boolean readOnly)
新規に読み込み専用とマークしたトランザクションを開始する。
|
void |
resume(Transaction t)
サスペンドされたトランザクションを復帰します。
|
Transaction |
suspend()
トランザクションをサスペンドします。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoTransactionstatic java.lang.ThreadLocal<LocalTransaction> transaction
public Transaction newTransaction()
TransactionManagernewTransaction インタフェース内 TransactionManagerpublic Transaction currentTransaction()
TransactionManagerTransactionStatus.NONEのTransactionが返却されます。
サスペンドされている場合はTransactionStatus.SUSPENDEDのTransactionが返却されます。currentTransaction インタフェース内 TransactionManagerpublic void checkAndClean()
public Transaction newTransaction(boolean readOnly)
TransactionManagernewTransaction インタフェース内 TransactionManagerprotected Transaction createTran(boolean readOnly, boolean noTransaction)
public Transaction suspend()
TransactionManagersuspend インタフェース内 TransactionManagerpublic void resume(Transaction t)
TransactionManagerresume インタフェース内 TransactionManagert - suspend()の際取得したTransactionインスタンス