uk.ac.ed.inf.csb.taweka
Class ArffPropsTableManager

java.lang.Object
  extended by uk.ac.ed.inf.csb.utils.database.DbManaged
      extended by uk.ac.ed.inf.csb.utils.database.TableManager
          extended by uk.ac.ed.inf.csb.taweka.ArffPropsTableManager

public class ArffPropsTableManager
extends uk.ac.ed.inf.csb.utils.database.TableManager

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) TODO integrate arff recording to database with mulan experiment recording

Version:
16 Jun 2010
Author:
Luna De Ferrari luna.deferrari-at-ed.ac.uk

Field Summary
 
Fields inherited from class uk.ac.ed.inf.csb.utils.database.TableManager
m_writer
 
Constructor Summary
ArffPropsTableManager(ArffGenerator arffGenerator)
          Constructor 1: initialises the table (uses given database connection file)
 
Method Summary
 uk.ac.ed.inf.csb.utils.database.TableRow createRow()
           
 ArffGenerator getArffGenerator()
           
 java.lang.String getArffPathFrobDb(int recordId)
           
 int getArffRecordId()
           
 java.lang.String getPropertyValueFromTable(java.lang.String propertyName, int id)
           
static void main(java.lang.String[] args)
          Main for recreating table
 void writeArffRecordToDb()
           
 
Methods inherited from class uk.ac.ed.inf.csb.utils.database.TableManager
getTableCreator, getTableName, getTableReader, getTableWriter
 
Methods inherited from class uk.ac.ed.inf.csb.utils.database.DbManaged
getDbConnection, getDbManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArffPropsTableManager

public ArffPropsTableManager(ArffGenerator arffGenerator)
Constructor 1: initialises the table (uses given database connection file)

Throws:
java.sql.SQLException
Method Detail

createRow

public uk.ac.ed.inf.csb.utils.database.TableRow createRow()

getArffGenerator

public ArffGenerator getArffGenerator()

getArffPathFrobDb

public java.lang.String getArffPathFrobDb(int recordId)

getArffRecordId

public int getArffRecordId()

getPropertyValueFromTable

public java.lang.String getPropertyValueFromTable(java.lang.String propertyName,
                                                  int id)

writeArffRecordToDb

public void writeArffRecordToDb()

main

public static void main(java.lang.String[] args)
Main for recreating table

Parameters:
args -
Throws:
java.sql.SQLException