java.lang.Object | +--com.ibm.commerce.marketingcenter.events.util.DBXMLFileReader
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 |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String FILEPATH
public static final java.lang.String ENCODING
Constructor Detail |
---|
public DBXMLFileReader()
Method Detail |
---|
public void readFile(java.lang.String[] s)
DBConnection
to connect to the
database. We use DBSql
to read the data from an XML file and
insert the data into the table.
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.