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
SQLException
public static void removeConnectionUsed(long key)
public static Connection addConnection(DataSource ds) throws Exception
Exception
public static Connection getConnection()
public static boolean isThreadHasEnlistment()
public static void bindConnection(Connection conn) throws Exception
Exception
public static void delistResource(int flag, long key) throws Exception
Exception
public static void removeTransaction(long key)
public static void rollbackTransaction(boolean insideSynapse, long key) throws Exception
Exception
public static void endTransaction(boolean insideSynapse, long key) throws Exception
Exception
public static TransactionManager getTransactionManager() throws Exception
Exception
public static Transaction getTransaction() throws Exception
Exception
Copyright © 2005–2018 Apache Software Foundation. All rights reserved.