pt.moredata.xml.db
Class XMLSimpleReader

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

public abstract class XMLSimpleReader
extends java.lang.Object

Author:
luism

Constructor Summary
XMLSimpleReader()
           
 
Method Summary
 java.sql.Connection getConnection()
           
 org.jdom.Document getDocument()
           
protected abstract  DBSimpleTable[] 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

XMLSimpleReader

public XMLSimpleReader()
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 DBSimpleTable[] 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