|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ocvolume.database.database
last updated on June 15, 2002
description: class used to manipulate database
calls: none
called by: volume
input: data to be stored in database
output: data read from database
Field Summary | |
static java.lang.String |
DOUBLE
data type DOUBLE |
Constructor Summary | |
database(java.lang.String dataSourceName)
constructor to load database calls: none called by: volume, chgToDB |
Method Summary | |
void |
close()
close connection to database calls: none called by: volume, chgToDB |
void |
createTable(java.lang.String tableName,
java.lang.String[] columns,
java.lang.String[] dataTypes)
creates a table in database calls: none called by: chgToDB |
int |
getRowCount(java.lang.String tableName)
get number of rows in a table calls: none called by: volume |
void |
insertRow(java.lang.String tableName,
double[] values)
inserts a row to the specified table calls: none called by: chgToDB |
java.sql.ResultSet |
retrieve(java.lang.String tableName)
retrieve data from entire table calls: none called by: volume |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DOUBLE
Constructor Detail |
public database(java.lang.String dataSourceName)
dataSourceName
- database sourceMethod Detail |
public int getRowCount(java.lang.String tableName)
tableName
- table to get row count from
public java.sql.ResultSet retrieve(java.lang.String tableName)
tableName
- table to get data from
public void insertRow(java.lang.String tableName, double[] values)
tableName
- table to add the new row tovalues
- values for all the columns in the tablepublic void createTable(java.lang.String tableName, java.lang.String[] columns, java.lang.String[] dataTypes)
tableName
- name of table to be createdcolumns
- column namesdataTypes
- data types for the columnspublic void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |