|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.jdbc.JdbcUtils
Provides convenience methods Java Database Connectivity.
| Constructor Summary | |
JdbcUtils()
|
|
| Method Summary | |
static void |
close(Connection c,
Statement s,
ResultSet r)
Close an SQLException connection. |
static void |
displayResultSet(ResultSet rs)
Dump a JDBC ResultSet to the current PrintStream. |
static void |
err(SQLException e)
Dump an SQLException to the current PrintStream. |
static Driver |
loadDriver(String className)
Dynamically load a JDBC Driver class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JdbcUtils()
| Method Detail |
public static Driver loadDriver(String className)
If an Exception occurs, write a stack trace to the current PrintStream. (The default PrintStream is System.err).
className - the fully-qualified JDBC Driver classname.
public static void displayResultSet(ResultSet rs)
rs - the ResultSet to be dumped.public static void err(SQLException e)
e - The SQLException to be dumped.
public static void close(Connection c,
Statement s,
ResultSet r)
c - The Connection to be closed.s - The Statement or PrepardedStatement to be closed.r - The ResultSet to be closed.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||