|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rhi.architecture.db.DBUtil
Helper method to create a DataSource.
| Constructor Summary | |
DBUtil()
|
|
| Method Summary | |
static void |
close(java.sql.Connection conn)
helper method for closing connection objects. |
static void |
close(java.sql.ResultSet rs)
helper method for closing result set objects. |
static void |
close(java.sql.Statement stmt)
helper method for closing statement objects. |
static javax.sql.DataSource |
getDataSource()
Get the default DataSource |
static javax.sql.DataSource |
getDataSource(java.lang.String name)
Get a specific DataSource |
static Logger |
log()
return the configured logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBUtil()
| Method Detail |
public static javax.sql.DataSource getDataSource()
throws ConfigurationException
ConfigurationException
public static javax.sql.DataSource getDataSource(java.lang.String name)
throws ConfigurationException
name -
ConfigurationExceptionpublic static void close(java.sql.Connection conn)
conn - public static void close(java.sql.Statement stmt)
stmt - public static void close(java.sql.ResultSet rs)
rs - public static Logger log()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||