|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jso.sql.SQLUtil
SQL utility class.
Constructor Summary | |
SQLUtil()
|
Method Summary | |
static void |
safellyClose(java.sql.Connection c)
Closes a connection without throwing any exceptions. |
static void |
safellyClose(ConnectionPool pool)
Closes a connection pool without throwing any exceptions. |
static void |
safellyClose(java.sql.PreparedStatement ps)
Closes a prepared statement without throwing any exceptions. |
static void |
safellyClose(java.sql.ResultSet rs)
Closes a result set without throwing any exceptions. |
static void |
safellyCommit(JDBCTransaction tx)
Commits a transaction without throwing any exceptions. |
static void |
safellyReturn(ConnectionPool pool,
java.sql.Connection c)
Returns a connection to a connection pool without throwing any exceptions. |
static void |
safellyRollback(JDBCTransaction tx)
Rolls back a transaction without throwing any exceptions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLUtil()
Method Detail |
public static void safellyClose(java.sql.ResultSet rs)
rs
- The result set to be closed.public static void safellyClose(java.sql.PreparedStatement ps)
ps
- The prepared statement to be closed.public static void safellyClose(java.sql.Connection c)
c
- The connection to be closed.public static void safellyReturn(ConnectionPool pool, java.sql.Connection c)
pool
- The pool from which the connection was borrowed.c
- The connection to be returned.public static void safellyClose(ConnectionPool pool)
pool
- The connection pool to be closed.public static void safellyCommit(JDBCTransaction tx)
tx
- The transaction to be commited.public static void safellyRollback(JDBCTransaction tx)
tx
- The transaction to be rolled back.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |