public class Transaction extends Object
Transaction class.
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
Transaction() |
| Modifier and Type | Method and Description |
|---|---|
static void |
begin()
begin
|
static void |
end()
end
|
protected void |
finalize()
finalize
|
static Connection |
getConnection(String dsName)
getConnection
|
static void |
register(ResultSet rs)
register
|
static void |
register(Statement stmt)
register
|
static void |
rollbackOnly()
rollbackOnly
|
public static void begin()
begin
public static Connection getConnection(String dsName) throws SQLException
getConnection
dsName - a String object.Connection object.SQLException - if any.public static void register(Statement stmt)
register
stmt - a Statement object.public static void rollbackOnly()
throws SQLException
rollbackOnly
SQLException - if any.public static void end()
throws SQLException
end
SQLException - if any.Copyright © 2022. All rights reserved.