Style Intelligence v12.0

inetsoft.uql.util
Class DerivedQuery

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

public class DerivedQuery
extends HierQuery

A derived query uses the output of another query as its input. It can be used to extend an existing query, and perform additional selection and conversion.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.util.HierQuery
attrmap, distinct, inparams, item, select, showFlds, xpath, xselect
 
Fields inherited from class inetsoft.uql.XQuery
DERIVED, HINT_DEFAULT_MAX_ROWS, HINT_IGNORE_MAX_ROWS, HINT_MAX_ROWS, HINT_TIMEOUT
 
Constructor Summary
DerivedQuery()
          Create a derived query object.
 
Method Summary
protected  void findVariables(Map varmap)
          Find all varialbes in the query.
 XQuery getBaseQuery()
          Get the base query.
 String getBaseQueryName()
           
 XDataSource getDataSource()
          Get the data source this query is associated with.
 XTypeNode getSourceType(Object session)
          Get the output type of the data source, without filtering.
 XVariable getVariable(String name)
          Get a variable defined in this query.
 Enumeration getVariableNames()
          Get the names of all variables used in this query.
 void parseXML(Element root)
          Parse the XML element that contains information on this query.
 void revalidate()
          Revalidate the query object if context changes, for example, data source registry changes.
 void setBaseQuery(XQuery query)
          Set the base query.
 void setDataSource(XDataSource datasource)
          Set the data source this query is associated with.
 void writeXML(PrintWriter writer)
          Generate the XML segment to represent this query.
 
Methods inherited from class inetsoft.uql.util.HierQuery
clone, deepClone, getAttribute, getCustomParameters, getNodePath, getOutputType, getRequest, getRequestParameters, getSelection, getSelectionAsString, getSourceType, isDistinct, isShowFlds, setAttribute, setCustomParameters, setDistinct, setNodePath, setRequest, setSelection, setSelectionAsString, setShowFlds
 
Methods inherited from class inetsoft.uql.XQuery
addVariable, equals, findVariables, findVariables, findVariables, findVariables, getAllDefinedVariables, getDefinedVariables, getDescription, getEstimatedTime, getFolder, getMaxRows, getName, getOutputType, getPartition, getProperty, getTimeout, getType, hashCode, isOutputTypeAvailable, isVisible, removeVariable, 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

DerivedQuery

public DerivedQuery()
Create a derived query object.

Method Detail

getBaseQueryName

public String getBaseQueryName()

getBaseQuery

public XQuery getBaseQuery()
Get the base query.


setBaseQuery

public void setBaseQuery(XQuery query)
Set the base query.


getSourceType

public XTypeNode getSourceType(Object session)
Get the output type of the data source, without filtering.

Overrides:
getSourceType in class HierQuery

setDataSource

public void setDataSource(XDataSource datasource)
Set the data source this query is associated with.

Overrides:
setDataSource in class XQuery

getDataSource

public XDataSource getDataSource()
Get the data source this query is associated with.

Overrides:
getDataSource in class XQuery

revalidate

public void revalidate()
Revalidate the query object if context changes, for example, data source registry changes.

Overrides:
revalidate in class XQuery

findVariables

protected void findVariables(Map varmap)
Find all varialbes in the query.

Overrides:
findVariables in class HierQuery

parseXML

public void parseXML(Element root)
              throws Exception
Parse the XML element that contains information on this query.

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

writeXML

public void writeXML(PrintWriter writer)
Generate the XML segment to represent this query.

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

getVariableNames

public Enumeration getVariableNames()
Get the names of all variables used in this query. The variables are either UserVariable or QueryVariable.

Overrides:
getVariableNames in class XQuery

getVariable

public XVariable getVariable(String name)
Get a variable defined in this query.

Overrides:
getVariable in class XQuery
Parameters:
name - variable name.
Returns:
variable definition.

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