|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.storage.olap.sasmdx.TupleElement
public class TupleElement
Contains the client side implementation for com.sas.storage.olap.TupleElementInterface. This implementation uses the IOM/OLAP interfaces provided by the SAS OLAP server.
Constructor Summary | |
---|---|
TupleElement(TupleInterface tuple,
int elementIndex,
java.lang.String memberUniqueName,
java.lang.String memberLabel,
java.lang.String levelUniqueName,
java.lang.String levelDepth,
java.lang.String displayInfo,
java.util.Map properties,
com.sas.storage.olap.TupleElementType type)
|
Method Summary | |
---|---|
int |
getChildCount()
Get the number of children for this element |
java.lang.String |
getFormat()
Get the Format associated with this element if it is a measure element null otherwise |
java.lang.String |
getLabel()
Get the label for this element |
int |
getLevelDepth()
Get the depth of the level |
int |
getMaximumCoordinate()
Get the maximum coordinate of this element |
int |
getMinimumCoordinate()
Get the minimum coordinate of this element |
java.lang.String |
getName()
Get the unique name (member unique name) of this element |
java.util.Map |
getProperties()
Get the element properties |
int |
getSpan()
Get the span value for this element. |
int |
getSpanDepth()
Return a value indicating the depth at which the element be position in a given span value. |
TupleInterface |
getTuple()
Get the tuple this element belongs to |
int |
getTupleElementIndex()
Get the index of this element in a tuple |
com.sas.storage.olap.TupleElementType |
getType()
Get the type of this tuple element, supported types are Measures, totals, subtotals, and unspecified. |
java.lang.String |
getUniqueLevelName()
Get the unque level name of the element's level |
boolean |
isContextual()
Return if this element is part of the query or it is there to show the context info. |
boolean |
isContinued()
Return if this element has the same parent as previous element |
boolean |
isDrilledDown()
Return if the element is in a drilled down state |
void |
setMaximumCoordinate(int maximumCoordinate)
Set the maximum coordinate for this element |
void |
setMinimumCoordinate(int minimumCoordinate)
Set the minimum coordinate for this element |
void |
setSpan(int span)
Set the span value for this element. |
void |
setSpanDepth(int depth)
Sets the number indicating the depth of the lement in to span for this element. |
java.lang.String |
toString()
Returns a label of this element |
Constructor Detail |
---|
public TupleElement(TupleInterface tuple, int elementIndex, java.lang.String memberUniqueName, java.lang.String memberLabel, java.lang.String levelUniqueName, java.lang.String levelDepth, java.lang.String displayInfo, java.util.Map properties, com.sas.storage.olap.TupleElementType type) throws OLAPException
OLAPException
Method Detail |
---|
public int getSpan()
getSpan
in interface TupleElementInterface
public void setSpan(int span)
setSpan
in interface TupleElementInterface
number
- of rows or column spanned by this elementpublic TupleInterface getTuple() throws OLAPException
getTuple
in interface TupleElementInterface
OLAPException
- if a database error occurspublic java.lang.String getLabel() throws OLAPException
getLabel
in interface TupleElementInterface
OLAPException
- if a database error occurspublic java.lang.String getName() throws OLAPException
getName
in interface TupleElementInterface
OLAPException
- if a database error occurspublic int getTupleElementIndex() throws OLAPException
getTupleElementIndex
in interface TupleElementInterface
OLAPException
public boolean isDrilledDown() throws OLAPException
isDrilledDown
in interface TupleElementInterface
OLAPException
- if a database error occurspublic boolean isContinued() throws OLAPException
isContinued
in interface TupleElementInterface
OLAPException
- if a database error occurspublic boolean isContextual() throws OLAPException
isContextual
in interface TupleElementInterface
OLAPException
public java.lang.String getUniqueLevelName() throws OLAPException
getUniqueLevelName
in interface TupleElementInterface
OLAPException
- if a database error occurspublic int getLevelDepth() throws OLAPException
getLevelDepth
in interface TupleElementInterface
the
- level depth
OLAPException
- if a database error occurspublic int getChildCount() throws OLAPException
getChildCount
in interface TupleElementInterface
OLAPException
- if a database error occurspublic java.util.Map getProperties() throws OLAPException
getProperties
in interface TupleElementInterface
OLAPException
- if a database error occurspublic int getMinimumCoordinate() throws OLAPException
getMinimumCoordinate
in interface TupleElementInterface
OLAPException
- if a database error occursTupleElementInterface.getMaximumCoordinate()
public int getMaximumCoordinate() throws OLAPException
getMaximumCoordinate
in interface TupleElementInterface
OLAPException
- if a database error occursTupleElementInterface.getMinimumCoordinate()
public void setMinimumCoordinate(int minimumCoordinate) throws OLAPException
setMinimumCoordinate
in interface TupleElementInterface
minimum
- Coordinate of this element
OLAPException
- if a database error occursTupleElementInterface.setMaximumCoordinate(int)
public void setMaximumCoordinate(int maximumCoordinate) throws OLAPException
setMaximumCoordinate
in interface TupleElementInterface
maximum
- Coordinate of this element
OLAPException
- if a database error occursTupleElementInterface.setMinimumCoordinate(int)
public java.lang.String getFormat() throws OLAPException
getFormat
in interface TupleElementInterface
OLAPException
public int getSpanDepth() throws OLAPException
TupleElementInterface
getSpanDepth
in interface TupleElementInterface
OLAPException
public com.sas.storage.olap.TupleElementType getType() throws OLAPException
TupleElementInterface
getType
in interface TupleElementInterface
TupleElementType.TOTAL
, TupleElementType.SUBTOTAL
,
TupleElementType.MEASURE
, TupleElementType.UNSPECIFIED
OLAPException
public void setSpanDepth(int depth)
TupleElementInterface
setSpanDepth
in interface TupleElementInterface
public java.lang.String toString()
toString
in class java.lang.Object
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |