|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.XQuery
inetsoft.uql.xmla.XMLAQuery
public class XMLAQuery
XMLAQuery object represents a query for MDX request in XMLA.
| 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 | |
|---|---|
XMLAQuery()
Create a query object with the specified type. |
|
| Method Summary | |
|---|---|
void |
addMeasureRef(DataRef ref)
Add a measure. |
void |
addMemberRef(DataRef ref)
Add a dimension member. |
protected DataRef |
convertDataRef(DataRef ref)
Convert data ref for backward compatibility. |
int |
diffLevel(DataRef ref0,
DataRef ref1)
Calculate the diff of level numbers. |
protected String |
getAttribute(DataRef ref)
Get attribute of data ref. |
int |
getColumnCount()
Get column count. |
ConditionList |
getConditionList()
Get ConditionList. |
String |
getCube()
Get cube name. |
protected String |
getEntity(DataRef ref)
Get entity of data ref. |
Map |
getExpandedPaths()
Get the dimension hierarchy expanded paths. |
XNode |
getFilterNode()
Get filter node. |
protected int |
getLevelCount(inetsoft.uql.xmla.Dimension dim)
Get suitable level count. |
int |
getLevelNumber(DataRef ref)
Get dimension member level number. |
String |
getMDXDefinition()
Get MDX String. |
String[] |
getMDXDefinitions()
Get MDX String array. |
DataRef |
getMeasureRef(int index)
Get data ref of measure. |
int |
getMeasuresCount()
Get column count. |
DataRef |
getMemberRef(int index)
Get data ref of dimension member. |
DataRef[] |
getMemberRefs(String dim)
Get levels DataRef in the same dimension. |
DataRef[] |
getMemberRefs(String dim,
boolean all)
Get levels DataRef in the same dimension. |
protected List |
getMembers(String dim,
boolean all)
Get member DataRefs in the same dimension. |
int |
getMembersCount()
Get column count. |
XTypeNode |
getOutputType(Object session,
boolean full)
Get the output type of the query. |
Collection |
getSelectedDimensions()
Get selected dimensions on axis. |
XSelection |
getSelection()
Get the XSelection object. |
Collection |
getTouchedDimensions()
Get touched dimensions in select and where sub clause. |
DataRef |
getUpperMember(DataRef ref,
int offset)
Get the level above this level in the dimension. |
int |
indexOfMeasure(String name)
Get measure index. |
int |
indexOfMember(DataRef ref)
Get dimension member index. |
protected boolean |
isRight(DataRef ref,
String name)
Check if a data ref has the specified name. |
protected void |
parseAggregateInfo(Element root)
|
void |
parseXML(Element root)
Parse the XML element that contains information on XMLAQuery. |
void |
setConditionList(ConditionList conds)
Set ConditionList. |
void |
setCube(String cube)
Set cube name. |
void |
setExpandedPaths(Map expanded)
Set the dimension hierarchy expanded paths. |
void |
setFilterNode(XNode where0)
Set filter node. |
String |
toString()
Get the string representation. |
protected void |
writeAggregateInfo(PrintWriter writer)
|
void |
writeXML(PrintWriter writer)
Generate the XML segment to represent XMLAQuery |
| Methods inherited from class inetsoft.uql.XQuery |
|---|
addVariable, clone, equals, findVariables, 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, updateQueryVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XMLAQuery()
type - data source type. One of values defined in XDataSource.| Method Detail |
|---|
public String getMDXDefinition()
public String[] getMDXDefinitions()
public XSelection getSelection()
getSelection in class XQuery
public XTypeNode getOutputType(Object session,
boolean full)
getOutputType in class XQuerysession - the session objectfull - true to fetch full namepublic void setCube(String cube)
cube - cube name.public String getCube()
public void setFilterNode(XNode where0)
where - the condition filter node.public XNode getFilterNode()
public ConditionList getConditionList()
public void setConditionList(ConditionList conds)
conds - the specified condition list.public int getColumnCount()
public int getMembersCount()
public int getMeasuresCount()
public DataRef getMemberRef(int index)
index - the column index of expected data ref.
public int indexOfMember(DataRef ref)
ref - the specified dimension member.
public Collection getSelectedDimensions()
public Collection getTouchedDimensions()
protected int getLevelCount(inetsoft.uql.xmla.Dimension dim)
public DataRef getMeasureRef(int index)
index - the column index of expected measure.
public int indexOfMeasure(String name)
name - measure name.
protected boolean isRight(DataRef ref,
String name)
public void addMemberRef(DataRef ref)
ref - the specified dimension member dataref.public void addMeasureRef(DataRef ref)
ref - the specified measure dataref.public DataRef[] getMemberRefs(String dim)
dim - the specified dimension name.
public DataRef[] getMemberRefs(String dim,
boolean all)
dim - the specified dimension name.all - true to not ignore duplicate ones.
protected List getMembers(String dim,
boolean all)
public int getLevelNumber(DataRef ref)
public DataRef getUpperMember(DataRef ref,
int offset)
public int diffLevel(DataRef ref0,
DataRef ref1)
public void setExpandedPaths(Map expanded)
public Map getExpandedPaths()
public String toString()
toString in class XQueryprotected DataRef convertDataRef(DataRef ref)
protected String getEntity(DataRef ref)
protected String getAttribute(DataRef ref)
public void writeXML(PrintWriter writer)
writeXML in interface inetsoft.util.XMLSerializablewriteXML in class XQuery
public void parseXML(Element root)
throws Exception
parseXML in interface inetsoft.util.XMLSerializableparseXML in class XQueryExceptionprotected void writeAggregateInfo(PrintWriter writer)
protected void parseAggregateInfo(Element root)
|
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 | ||||||||