|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.itim.adhocreport.Query
This class it a template for storing the ad hoc report query. It contains information like columns used in the Query, tables used and the filter condition. The structure has a close mapping to the SQL statement organization.
Constructor Summary | |
Query()
|
|
Query(org.w3c.dom.Node node)
This is the constructor which takes the query in XML format and constructs itself by populating its member variables. |
Method Summary | |
java.util.Vector |
getColumns()
This method gets the columns. |
org.w3c.dom.Document |
getColumnsXML()
This method returns the XML node containing the report columns. |
java.lang.String |
getFilter()
Get the report filter |
java.util.Vector |
getTables()
Get the tables used in the report |
org.w3c.dom.Document |
getTablesXML()
This method returns the XML node containing the report tables. |
org.w3c.dom.Node |
getXML()
This method returns the data contained by this object in XML format. |
void |
setAll(java.util.Vector columns,
java.util.Vector tables,
java.lang.String filter)
Sets the member variables |
void |
setColumns(org.w3c.dom.Node node)
This method sets the columns. |
void |
setColumns(java.util.Vector columns)
Sets the columns in the report |
void |
setFilter(java.lang.String filter)
Set the report filter |
void |
setTables(org.w3c.dom.Node node)
This method sets the tables. |
void |
setTables(java.util.Vector tables)
Sets the tables in the report |
java.lang.String |
toString()
This method returns the SQL query string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Query()
public Query(org.w3c.dom.Node node) throws InvalidReportColumnException
xml
- - Report query in XML format.Method Detail |
public void setAll(java.util.Vector columns, java.util.Vector tables, java.lang.String filter) throws InvalidQueryException
columns
- tables
- filter
- InvalidQueryException
- public void setColumns(org.w3c.dom.Node node) throws InvalidReportColumnException
node
- InvalidReportColumnException
- public void setTables(org.w3c.dom.Node node)
node
- Root node of the XML representation of ReportXML object.public org.w3c.dom.Node getXML() throws javax.xml.parsers.ParserConfigurationException
public org.w3c.dom.Document getColumnsXML() throws javax.xml.parsers.ParserConfigurationException
public org.w3c.dom.Document getTablesXML() throws javax.xml.parsers.ParserConfigurationException
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Vector getColumns()
public void setColumns(java.util.Vector columns) throws InvalidQueryException
columns
- InvalidQueryException
- public java.lang.String getFilter()
public void setFilter(java.lang.String filter) throws InvalidQueryException
filter
- InvalidQueryException
- public java.util.Vector getTables()
public void setTables(java.util.Vector tables) throws InvalidQueryException
tables
- InvalidQueryException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |