|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ed.inf.csb.taweka.ArffPropertiesDbWriter
public class ArffPropertiesDbWriter
Writes into a database table the pointers needed to build an arff file (the name of the arff file, the query to select instances, attributes, class values etc)
| Constructor Summary | |
|---|---|
ArffPropertiesDbWriter(ArffGenerator arffGenerator)
Constructor 1: initialises the table (uses given database connection file) |
|
| Method Summary | |
|---|---|
void |
createArffPropertiesTable()
Creates the table for the ARFF file records |
void |
dropAndCreateTable()
Beware! This method drops and recreates the ARFF table. |
ArffGenerator |
getArffGenerator()
|
int |
getArffRecordId()
|
java.lang.String |
getPropertyFromTable(java.lang.String propertyName)
|
uk.ac.ed.inf.csb.utils.databaseutils.Table |
getTable()
|
static void |
main(java.lang.String[] args)
Main for recreating table |
void |
savePropertiesToDb()
Insert the properties in the table, each property value is inserted in the table-field with the same name as the property key |
boolean |
writeTableToDb()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArffPropertiesDbWriter(ArffGenerator arffGenerator)
java.sql.SQLException| Method Detail |
|---|
public void createArffPropertiesTable()
public boolean writeTableToDb()
public void savePropertiesToDb()
public void dropAndCreateTable()
public java.lang.String getPropertyFromTable(java.lang.String propertyName)
public uk.ac.ed.inf.csb.utils.databaseutils.Table getTable()
public ArffGenerator getArffGenerator()
public int getArffRecordId()
public static void main(java.lang.String[] args)
throws java.sql.SQLException
args -
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||