public class SQLUtil
extends java.lang.Object
| Constructor and Description |
|---|
SQLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(java.sql.Connection conn)
Quietly closes a connection.
|
static void |
closeQuietly(java.sql.Connection conn,
java.sql.Statement stmt)
Quietly closes a connection and a statement.
|
static void |
closeQuietly(java.sql.Connection conn,
java.sql.Statement stmt,
java.sql.ResultSet rs)
Quietly closes a connection, statement and result set.
|
static void |
closeQuietly(java.sql.ResultSet rs)
Quietly closes a result set.
|
static void |
closeQuietly(java.sql.Statement stmt)
Quietly closes a statement.
|
static void |
closeQuietly(java.sql.Statement stmt,
java.sql.ResultSet rs)
Quietly closes a statement and result set.
|
public static final void closeQuietly(java.sql.Connection conn,
java.sql.Statement stmt,
java.sql.ResultSet rs)
Catches and ignores any exceptions.
conn - The connection. May be null.stmt - The statement. May be null.rs - The result set. May be null.public static final void closeQuietly(java.sql.Connection conn,
java.sql.Statement stmt)
Catches and ignores any exceptions.
conn - The connection. May be null.stmt - The statement. May be null.public static final void closeQuietly(java.sql.Connection conn)
Catches and ignores any exceptions.
conn - The connection. May be null.public static final void closeQuietly(java.sql.Statement stmt,
java.sql.ResultSet rs)
Catches and ignores any exceptions.
stmt - The statement. May be null.rs - The result set. May be null.public static final void closeQuietly(java.sql.Statement stmt)
Catches and ignores any exceptions.
stmt - The statement. May be null.public static final void closeQuietly(java.sql.ResultSet rs)
Catches and ignores any exceptions.
rs - The result set. May be null.