|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webdocwf.util.xml.XmlReader
Class load existing XML file, creating DOM from file or creating new DOM.Class has methods for reading data from XML file.
Constructor Summary | |
XmlReader(java.lang.String fileName)
Constructor will build Document from the specified file if file exist, or will create new Document if file not exist. |
Method Summary | |
java.util.ArrayList |
getResultSet()
|
void |
select(java.lang.String tableName,
java.lang.String[] columnNames,
java.lang.String[] whereColumnNames,
java.lang.String[] whereColumnValues)
Gets data from database.Method will fill array list which will be result set. |
void |
selectTableNames()
Gets table names from database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlReader(java.lang.String fileName) throws java.sql.SQLException
fileName
- full pathname of the XML file
java.sql.SQLException
Method Detail |
public void select(java.lang.String tableName, java.lang.String[] columnNames, java.lang.String[] whereColumnNames, java.lang.String[] whereColumnValues) throws java.sql.SQLException
tableName
- Name of table.columnNames
- Names of columns from which will be select data.whereColumnNames
- Names of columns in where conditions.whereColumnValues
- Values of conditions.
java.sql.SQLException
public void selectTableNames() throws java.sql.SQLException
java.sql.SQLException
public java.util.ArrayList getResultSet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |