|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.schema.XVariable
inetsoft.uql.schema.QueryVariable
public class QueryVariable
A QueryVariable is a variable that derives its value from the result of a query. The result is normally a summarization of query results.
| Field Summary | |
|---|---|
static String |
AVG
Calculate the average of data. |
static String |
COUNT
Calculate the number of occurrence. |
static String |
DISTINCT_COUNT
Calculate the unique number of occurrence. |
static String |
MAX
Calculate the maximum of data. |
static String |
MIN
Calculate the minimum of data. |
static String |
SUM
Calculate the sum of data. |
| Constructor Summary | |
|---|---|
QueryVariable()
|
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone of this object. |
Object |
evaluate(VariableTable vars)
Evaulate the XVariable. |
XNode |
execute(VariableTable vars)
Execute the query defined in this variable, and apply any path selection if defined. |
String |
getAggregate()
Get the aggregate function name. |
XQuery |
getLocalQuery()
Get the XQuery only for local query. |
XQueryRepository |
getLocalQueryRepository()
Get the local query repository. |
XNodePath |
getNodePath()
Get the tree selection path. |
String |
getQuery()
Get the query name. |
boolean |
isLocalQuery()
Get local query option. |
void |
parseXML(Element root)
Parse the XML element that contains information on this variable. |
void |
setAggregate(String aggregate)
Set the aggregate function to apply to the selection result. |
void |
setLocalQuery(boolean local)
Set local query option. |
void |
setLocalQueryRepository(XQueryRepository repository)
Set the local query repository. |
void |
setNodePath(XNodePath path)
Set the node path to select a node from the query result tree to use as the value of the variable. |
void |
setQuery(String query)
Set the query to extract result from. |
void |
writeXML(PrintWriter writer)
Write the variable XML representation. |
| Methods inherited from class inetsoft.uql.schema.XVariable |
|---|
getName, getSource, parse, parseAttributes, setName, setSource, writeAttributes |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SUM
public static final String AVG
public static final String MIN
public static final String MAX
public static final String COUNT
public static final String DISTINCT_COUNT
| Constructor Detail |
|---|
public QueryVariable()
| Method Detail |
|---|
public void setQuery(String query)
query - query name.public String getQuery()
public XQuery getLocalQuery()
public XQueryRepository getLocalQueryRepository()
public void setLocalQueryRepository(XQueryRepository repository)
public void setNodePath(XNodePath path)
path - tree selection path.public XNodePath getNodePath()
public void setAggregate(String aggregate)
aggregate - function name, one of SUM, AVG, MIN, MAX, and COUNT.public String getAggregate()
public void setLocalQuery(boolean local)
public boolean isLocalQuery()
public Object evaluate(VariableTable vars)
evaluate in class XVariable
public XNode execute(VariableTable vars)
throws Exception
Exception
public void parseXML(Element root)
throws Exception
Exceptionpublic void writeXML(PrintWriter writer)
public Object clone()
clone in class XVariable
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||