|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.experiment.DatabaseUtils
weka.gui.sql.DbUtils
public class DbUtils
A little bit extended DatabaseUtils class.
Note: needs at least HSQLDB 1.7.3.3 to work, older versions do not support
Cursors that can also move backwards - see execute(String).
DatabaseUtils,
execute(String),
Serialized Form| Field Summary |
|---|
| Fields inherited from class weka.experiment.DatabaseUtils |
|---|
BOOL, BYTE, DATE, DOUBLE, EXP_INDEX_TABLE, EXP_RESULT_COL, EXP_RESULT_PREFIX, EXP_SETUP_COL, EXP_TYPE_COL, FLOAT, INTEGER, LONG, PROPERTY_FILE, SHORT, STRING, TEXT |
| Constructor Summary | |
|---|---|
DbUtils()
initializes the object |
|
| Method Summary | |
|---|---|
boolean |
execute(java.lang.String query)
Executes a SQL query. |
java.sql.Connection |
getConnection()
returns the current database connection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbUtils()
throws java.lang.Exception
java.lang.Exception - in case something goes wrong in the init of the
DatabaseUtils constructorDatabaseUtils| Method Detail |
|---|
public boolean execute(java.lang.String query)
throws java.sql.SQLException
execute in class DatabaseUtilsquery - the SQL query
java.sql.SQLException - if an error occursDatabaseUtils.close()public java.sql.Connection getConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||