public class DefaultTransactionManager extends Object
Constructor and Description |
---|
DefaultTransactionManager() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static void |
commit() |
static Connection |
getCurrentThreadConnection(DataSource ds) |
static Connection |
getCurrentThreadConnection(DataSource ds,
TransactionIsolationLevel level) |
static boolean |
inTrans() |
static void |
rollback() |
static void |
start() |
public static void start()
public static void commit() throws SQLException
SQLException
public static void rollback() throws SQLException
SQLException
public static void clear()
public static Connection getCurrentThreadConnection(DataSource ds) throws SQLException
SQLException
public static Connection getCurrentThreadConnection(DataSource ds, TransactionIsolationLevel level) throws SQLException
SQLException
public static boolean inTrans()
Copyright © 2020. All rights reserved.