java.lang.Object | +--com.ibm.commerce.marketingcenter.events.util.DBXMLFileWriter
This class is used by ExportStats to connect to the database, create an XML file on the file system containing the content of a specified table.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
ENCODING Encoding used in the OutputStreamReader. |
static java.lang.String |
FILEPATH File path which is prepended to the name of the XML file. |
Constructor Summary | |
---|---|
DBXMLFileWriter() Constructs a DBXMLFileWriter object. |
Method Summary | |
---|---|
void |
writeFile(java.lang.String[] s) This method is used to connect to the database and write the content of a table into an XML file. |
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 DBXMLFileWriter()
Method Detail |
---|
public void writeFile(java.lang.String[] s)
DBConnection
to connect to the
database. We use DBSql
to query the database for a table and write
the data into an XML file.
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]
table name; s[5] name of the XML file.