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
SQLExceptionpublic static void rollback()
throws SQLException
SQLExceptionpublic static void clear()
public static Connection getCurrentThreadConnection(DataSource ds) throws SQLException
SQLExceptionpublic static Connection getCurrentThreadConnection(DataSource ds, TransactionIsolationLevel level) throws SQLException
SQLExceptionpublic static boolean inTrans()
Copyright © 2020. All rights reserved.