pt.moredata.xml.db
Class XMLReader

java.lang.Object
  extended bypt.moredata.xml.db.XMLReader

public abstract class XMLReader
extends java.lang.Object

Author:
luism

Constructor Summary
XMLReader()
           
 
Method Summary
 java.sql.Connection getConnection()
           
 org.jdom.Document getDocument()
           
protected abstract  XMLToDBTable processXML()
           
 void readXML(java.lang.String user, java.lang.String passwd, java.lang.String fileName, java.lang.String dbURL)
           
 void setConnection(java.sql.Connection connection)
          Sets the connection.
 void setDocument(org.jdom.Document document)
          Sets the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLReader

public XMLReader()
Method Detail

readXML

public void readXML(java.lang.String user,
                    java.lang.String passwd,
                    java.lang.String fileName,
                    java.lang.String dbURL)

processXML

protected abstract XMLToDBTable processXML()

getConnection

public java.sql.Connection getConnection()
Returns:
Connection

getDocument

public org.jdom.Document getDocument()
Returns:
Document

setConnection

public void setConnection(java.sql.Connection connection)
Sets the connection.

Parameters:
connection - The connection to set

setDocument

public void setDocument(org.jdom.Document document)
Sets the document.

Parameters:
document - The document to set