|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anthonyeden.lib.util.SQLUtilities
Useful SQL utilities.
| Constructor Summary | |
SQLUtilities()
|
|
| Method Summary | |
static void |
close(java.sql.Connection c)
Close the given JDBC connection if it is not null. |
static void |
close(java.sql.ResultSet rs)
Close the given JDBC ResultSet if it is not null. |
static void |
close(java.sql.Statement stmt)
Close the given JDBC statement if it is not null. |
static java.lang.String |
toString(java.sql.SQLException sqlx)
Convert the given SQLException into a String. |
static java.lang.String |
toString(java.sql.SQLWarning sqlw)
Convert the given SQLWarning into a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLUtilities()
| Method Detail |
public static void close(java.sql.ResultSet rs)
rs - The JDBC ResultSetpublic static void close(java.sql.Statement stmt)
stmt - The JDBC Statementpublic static void close(java.sql.Connection c)
c - The JDBC connectionpublic static java.lang.String toString(java.sql.SQLWarning sqlw)
sqlw - The SQLWarningpublic static java.lang.String toString(java.sql.SQLException sqlx)
sqlx - The SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||