Class TranscationManger
java.lang.Object
org.apache.synapse.commons.transaction.TranscationManger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Connectionstatic voidstatic voidbindConnection(Connection conn) static booleanstatic voiddelistResource(int flag, long key) static voidendTransaction(boolean insideSynapse, long key) static Connectionstatic intstatic Transactionstatic TransactionManagerstatic booleanstatic voidstatic voidremoveConnectionUsed(long key) static voidremoveTransaction(long key) static voidrollbackTransaction(boolean insideSynapse, long key)
-
Field Details
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
TranscationManger
public TranscationManger()
-
-
Method Details
-
lookUp
- Throws:
Exception
-
checkConnectionAlreadyUse
- Throws:
SQLException
-
removeConnectionUsed
public static void removeConnectionUsed(long key) -
addConnection
- Throws:
Exception
-
getConnection
-
isThreadHasEnlistment
public static boolean isThreadHasEnlistment() -
bindConnection
- Throws:
Exception
-
delistResource
- Throws:
Exception
-
removeTransaction
public static void removeTransaction(long key) -
rollbackTransaction
- Throws:
Exception
-
endTransaction
- Throws:
Exception
-
beginTransaction
- Throws:
Exception
-
getTransactionManager
- Throws:
Exception
-
getTransaction
- Throws:
Exception
-
getStatus
- Throws:
Exception
-