|
jBNC Toolbox | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbnc.database.DBLog
Enables loging of testing results to a database.
Constructor Summary | |
DBLog()
|
Method Summary | |
void |
close()
Closes connection to a database. |
void |
insert(java.lang.String table,
java.lang.String dataset,
java.lang.String algorithm,
double error,
double stdMean)
Inserts a results into a two result tables. |
static void |
main(java.lang.String[] args)
The main program for the DBLog class |
void |
open(java.lang.String dbURL,
java.lang.String user,
java.lang.String password)
Attempts to establish a connection to the given database URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBLog()
Method Detail |
public static void main(java.lang.String[] args)
args
- The command line argumentspublic void open(java.lang.String dbURL, java.lang.String user, java.lang.String password) throws java.lang.Exception
dbURL
- a database url of the form jdbc:subprotocol :
subnameuser
- the database user on whose behalf the Connection is
being madepassword
- the user's password
java.lang.Exception
- if a database access error occurspublic void close() throws java.lang.Exception
java.lang.Exception
- if a database access error occurspublic void insert(java.lang.String table, java.lang.String dataset, java.lang.String algorithm, double error, double stdMean) throws java.lang.Exception
table
- table prefix.dataset
- name of the dataset for which the results are
logged.algorithm
- name of the algorithm used for tests.error
- value of the error.stdMean
- value of the standard deviation of mean of error.
java.lang.Exception
- if a database access error occurs
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |