com.ibm.commerce.marketingcenter.events.util
Class DBXMLFileReader

java.lang.Object
  com.ibm.commerce.marketingcenter.events.util.DBXMLFileReader

public class DBXMLFileReader
extends java.lang.Object

This class is used by ImportStats to connect to the database, read the data from an XML file (created by ExportStats) and insert the data in a table.


Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
static java.lang.String ENCODING
Encoding used in the InputStreamReader.
static java.lang.String FILEPATH
File path which is prepended to the name of the XML file.
Constructor Summary
DBXMLFileReader()
Constructs a DBXMLFileReader object.
Method Summary
void readFile(java.lang.String[] s)
This method is used to connect to the database and write the content of an XML file into a table.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

FILEPATH

public static final java.lang.String FILEPATH
File path which is prepended to the name of the XML file. Set to empty string.
See Also:
Constant Field Values

ENCODING

public static final java.lang.String ENCODING
Encoding used in the InputStreamReader. Set to UTF-8.
See Also:
Constant Field Values
Constructor Detail

DBXMLFileReader

public DBXMLFileReader()
Constructs a DBXMLFileReader object.
Method Detail

readFile

public void readFile(java.lang.String[] s)
This method is used to connect to the database and write the content of an XML file into a table. We use DBConnection to connect to the database. We use DBSql to read the data from an XML file and insert the data into the table.
Parameters:
s - a Vector containing the following info: s[0] database type ; s[1] database name ; s[2] user id; s[3] user password; s[4] name of the XML file.

Feedback