org.gswing.components.output.exporter
Class DbToCsv

java.lang.Object
  extended by org.gswing.components.output.exporter.AbstractDbToFile
      extended by org.gswing.components.output.exporter.DbToCsv
All Implemented Interfaces:
IExporter

public class DbToCsv
extends AbstractDbToFile

Purpose: Writes election data from the database to a CSV file.


Field Summary
 
Fields inherited from class org.gswing.components.output.exporter.AbstractDbToFile
constituencyNo, CSV, DATA, dbAccess, election, results, SPACE, targetDir, UNDERSCORE, XML
 
Constructor Summary
DbToCsv(IFramework framework, String gswingHome, boolean uploadFiles)
          Constructor.
 
Method Summary
 void writeFile()
          Write the election data to comma separated file.
 
Methods inherited from class org.gswing.components.output.exporter.AbstractDbToFile
doExport, export, getFileName, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbToCsv

public DbToCsv(IFramework framework,
               String gswingHome,
               boolean uploadFiles)
Constructor.

Parameters:
framework - The main Framework object.
gswingHome - The path where gswing is installed.
uploadFiles - Should files be uploaded to server ?
Method Detail

writeFile

public void writeFile()
Write the election data to comma separated file.

Specified by:
writeFile in class AbstractDbToFile


Copyright © 2008. All Rights Reserved.