Style Intelligence v12.0

inetsoft.uql.tabular
Class TabularQuery

java.lang.Object
  extended by inetsoft.uql.XQuery
      extended by inetsoft.uql.tabular.TabularQuery
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable

public abstract class TabularQuery
extends XQuery

This is the base class for defining a tabular query.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.XQuery
DERIVED, HINT_DEFAULT_MAX_ROWS, HINT_IGNORE_MAX_ROWS, HINT_MAX_ROWS, HINT_TIMEOUT
 
Constructor Summary
TabularQuery(String type)
           
 
Method Summary
protected  void findVariables(Map varmap)
          Find all variables used in this query.
 XTypeNode[] getOutputColumns()
          Return the output columns of the query.
 XTypeNode getOutputType(Object session, boolean full)
          Get the output meta data of query (pre-selection).
 XSelection getSelection()
          Get the XSelection object representing the selected columns.
protected  void parseAttributes(Element tag)
          Parse the attributes of the XML tag.
protected  void parseContents(Element tag)
          Parse the contents of the XML tag.
 void parseXML(Element root)
          Parse the XML element that contains information on this query.
 void setOutputColumns(XTypeNode[] cols)
          Set the output columns.
protected  void writeAttributes(PrintWriter writer)
          Write the attributes of the XML tag.
protected  void writeContents(PrintWriter writer)
          Write the contents of the XML tag.
 void writeXML(PrintWriter writer)
          Generate the XML segment to represent this query.
 
Methods inherited from class inetsoft.uql.XQuery
addVariable, clone, equals, findVariables, findVariables, findVariables, findVariables, getAllDefinedVariables, getDataSource, getDefinedVariables, getDescription, getEstimatedTime, getFolder, getMaxRows, getName, getOutputType, getPartition, getProperty, getTimeout, getType, getVariable, getVariableNames, hashCode, isOutputTypeAvailable, isVisible, removeVariable, revalidate, setDataSource, setDescription, setEstimatedTime, setFolder, setMaxRows, setName, setPartition, setProperty, setTimeout, setVisible, toString, updateQueryVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TabularQuery

public TabularQuery(String type)
Method Detail

getOutputColumns

public XTypeNode[] getOutputColumns()
Return the output columns of the query. If the query implementation is able to find the column information, it should return the columns here. Otherwise, the column information will be captured when a query is previewed.


setOutputColumns

public void setOutputColumns(XTypeNode[] cols)
Set the output columns.


getOutputType

public XTypeNode getOutputType(Object session,
                               boolean full)
Get the output meta data of query (pre-selection).

Specified by:
getOutputType in class XQuery
Parameters:
session - the session object
full - true to fetch full name

findVariables

protected void findVariables(Map varmap)
Description copied from class: XQuery
Find all variables used in this query.

Overrides:
findVariables in class XQuery

getSelection

public XSelection getSelection()
Get the XSelection object representing the selected columns.

Specified by:
getSelection in class XQuery

writeXML

public final void writeXML(PrintWriter writer)
Description copied from class: XQuery
Generate the XML segment to represent this query.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Overrides:
writeXML in class XQuery

parseXML

public final void parseXML(Element root)
                    throws Exception
Description copied from class: XQuery
Parse the XML element that contains information on this query.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Overrides:
parseXML in class XQuery
Throws:
Exception

writeAttributes

protected void writeAttributes(PrintWriter writer)
Write the attributes of the XML tag.


writeContents

protected void writeContents(PrintWriter writer)
Write the contents of the XML tag.


parseAttributes

protected void parseAttributes(Element tag)
                        throws Exception
Parse the attributes of the XML tag.

Throws:
Exception

parseContents

protected void parseContents(Element tag)
                      throws Exception
Parse the contents of the XML tag.

Throws:
Exception

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.