|
OpMath | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opmath.util.db.DBRemoteTest
A test application for any implementation of the com.opmath.util.db.DBRemote
interface.
Copyright: (c) 2002 The Open Math Company Limited
The Terms of Distribution of this software are stipulated in the javadoc Overview for this project.
| Constructor Summary | |
DBRemoteTest(String dbName,
String fileName,
String tableName)
Constructs a new DBRemoteTest object. |
|
| Method Summary | |
protected void |
appendRow(String id,
String state)
Appends a row of test data to the current table. |
protected ResultSet |
getRows()
Returns a ResultSet object that contains all of the data
in the current table. |
static void |
main(String[] args)
The test application for classes implementing the DB implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DBRemoteTest(String dbName,
String fileName,
String tableName)
throws ClassNotFoundException
Constructs a new DBRemoteTest object.
This object is constructed and used only by the main(String[])
method of this class.
| Method Detail |
protected void appendRow(String id,
String state)
throws SQLException
Appends a row of test data to the current table.
SQLException - if the database access fails.
SQLException
protected ResultSet getRows()
throws SQLException
Returns a ResultSet object that contains all of the data
in the current table.
WARNING: getRows() creates a new ResultSet object,
but does not close it. The caller of getRows() must therefore
close the object returned by this method (with. eg. rs.close())
before getRows() can be called again. If this is not done,
then getRows() may throw an exception, depending on the database
driver class being tested.
ResultSet carrying data from a SELECT * FROM query.
SQLException - if the database access fails.
SQLExceptionpublic static void main(String[] args)
The test application for classes implementing the DB implementation.
Refer to the source code of this application to see what's going on.
|
OpMath | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||