|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxdrs_impl.genericdb.DBUtil
A set of utilities for communication with a database.
| Constructor Summary | |
DBUtil()
|
|
| Method Summary | |
static java.sql.PreparedStatement |
createPreparedStatement(java.sql.Connection connection,
java.lang.String query)
Create a PreparedStatement wrapping the given SQL query. |
static java.sql.ResultSet |
executeQueryWithSingleResult(java.sql.PreparedStatement statement)
Execute the given statement making sure there is one and only one result in the returned result set. |
| 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 java.sql.ResultSet executeQueryWithSingleResult(java.sql.PreparedStatement statement)
throws java.sql.SQLException,
soaprmi.RemoteException
statement - A statement to execute.
java.sql.SQLException
soaprmi.RemoteException
public static java.sql.PreparedStatement createPreparedStatement(java.sql.Connection connection,
java.lang.String query)
throws java.sql.SQLException
connection - A database connection.query - An SQL query.
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||