Class DbToCsv

  extended by org.gswing.components.output.exporter.AbstractDbToFile
      extended by org.gswing.components.output.exporter.DbToCsv
All Implemented Interfaces:

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)
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


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

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


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

Specified by:
writeFile in class AbstractDbToFile

Copyright © 2008. All Rights Reserved.