org.gswing.components.output.exporter
Class DbToXml

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

public class DbToXml
extends AbstractDbToFile

Purpose: Writes election data from the database to an XML 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
DbToXml(IFramework framework, String gswingHome, boolean uploadFiles)
          Constructor.
 
Method Summary
 void writeFile()
          Write the election data to 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

DbToXml

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

Parameters:
framework - The 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 file.

Specified by:
writeFile in class AbstractDbToFile


Copyright © 2008. All Rights Reserved.