| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gswing.components.input.importer.XmlToDb
public class XmlToDb
Purpose: Imports EML standard XML files into the database.
| Field Summary | |
|---|---|
| protected static String | CSV | 
| protected static String | XML | 
| Constructor Summary | |
|---|---|
| XmlToDb(IFramework framework,
        String path)Constructor. | |
| Method Summary | |
|---|---|
|  void | doImport(Object[] fileList)Start importing the XML files into the database. | 
| protected  Constituency | getConstituency(AliasKey constituencyAlias)Get the constituency details from the database. | 
| protected  Constituency | getConstituencyFromDb(AliasKey constituencyAlias)Get the constituency from the database. | 
| protected  String | getCouncilName() | 
| protected  String | getCsvDir()Get the directory containing CSV files. | 
| protected  String | getCsvProcessedDir()Get the directory of CSV processed files. | 
| protected  IDbWriteAccess | getDbAccess()Get the insert database access object. | 
| protected  Election | getElection() | 
| protected  IFramework | getFramework()Allow derived objects access the framework object. | 
| protected  IMessageHandling | getLogger()Allow derived objects access the logger. | 
| protected  String | getXmlDir()Get the directory containing XML files. | 
| protected  String | getXmlProcessedDir()Get the directory of XML processed files. | 
| protected  void | setCouncilName(String council)Set the council name the result belong to - if this is a local result. | 
| protected  void | setElection(Election election)Set the election the result belongs to. | 
|  void | startImport()Choose from a list if xml files to import into database. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final String CSV
protected static final String XML
| Constructor Detail | 
|---|
public XmlToDb(IFramework framework,
               String path)
framework - Framework object.path - The path to gswing home.| Method Detail | 
|---|
public void startImport()
public void doImport(Object[] fileList)
protected Constituency getConstituency(AliasKey constituencyAlias)
constituencyAlias - The constituency alias object.
protected Constituency getConstituencyFromDb(AliasKey constituencyAlias)
constituencyAlias - Constituency details.
protected String getCsvDir()
protected String getCsvProcessedDir()
protected String getXmlDir()
protected String getXmlProcessedDir()
protected IDbWriteAccess getDbAccess()
protected IFramework getFramework()
protected IMessageHandling getLogger()
protected void setElection(Election election)
election - The election object.protected void setCouncilName(String council)
council - The council name.protected Election getElection()
protected String getCouncilName()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||