public class TranscationManger extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
TranscationManger() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
addConnection(DataSource ds) |
static void |
beginTransaction() |
static void |
bindConnection(Connection conn) |
static boolean |
checkConnectionAlreadyUse(Connection conn) |
static void |
delistResource(int flag,
long key) |
static void |
endTransaction(boolean insideSynapse,
long key) |
static Connection |
getConnection() |
static int |
getStatus() |
static Transaction |
getTransaction() |
static TransactionManager |
getTransactionManager() |
static boolean |
isThreadHasEnlistment() |
static void |
lookUp(Context txContext) |
static void |
removeConnectionUsed(long key) |
static void |
removeTransaction(long key) |
static void |
rollbackTransaction(boolean insideSynapse,
long key) |
public static boolean checkConnectionAlreadyUse(Connection conn) throws SQLException
SQLExceptionpublic static void removeConnectionUsed(long key)
public static Connection addConnection(DataSource ds) throws Exception
Exceptionpublic static Connection getConnection()
public static boolean isThreadHasEnlistment()
public static void bindConnection(Connection conn) throws Exception
Exceptionpublic static void delistResource(int flag,
long key)
throws Exception
Exceptionpublic static void removeTransaction(long key)
public static void rollbackTransaction(boolean insideSynapse,
long key)
throws Exception
Exceptionpublic static void endTransaction(boolean insideSynapse,
long key)
throws Exception
Exceptionpublic static TransactionManager getTransactionManager() throws Exception
Exceptionpublic static Transaction getTransaction() throws Exception
ExceptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.