|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.experiment.DatabaseUtils
weka.core.converters.DatabaseConnection
public class DatabaseConnection
Connects to a database.
| 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, TIME |
| Constructor Summary | |
|---|---|
DatabaseConnection()
Sets up the database drivers. |
|
DatabaseConnection(File propsFile)
Reads the properties from the specified file and sets up the database drivers. |
|
DatabaseConnection(Properties props)
Uses the specified properties to set up the database drivers. |
|
| Method Summary | |
|---|---|
DatabaseMetaData |
getMetaData()
Gets meta data for the database connection object. |
Properties |
getProperties()
Returns the underlying properties object. |
String |
getRevision()
Returns the revision string. |
int |
getUpdateCount()
Dewtermines if the current query retrieves a result set or updates a table |
boolean |
getUpperCase()
Check if the property checkUpperCaseNames in the DatabaseUtils file is set to true or false. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseConnection()
throws Exception
Exception - if an error occurs
public DatabaseConnection(File propsFile)
throws Exception
propsFile - the props file to load, ignored if null or pointing
to a directory
Exception - if an error occurs
public DatabaseConnection(Properties props)
throws Exception
props - the properties to use, ignored if null
Exception - if an error occurs| Method Detail |
|---|
public Properties getProperties()
public boolean getUpperCase()
public DatabaseMetaData getMetaData()
throws Exception
Exception - if an error occurs
public int getUpdateCount()
throws SQLException
SQLException - if an error occurspublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class DatabaseUtils
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||