|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.storage.olap.sasmdx.TupleElement
@SASScope(value="ALL") 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 TupleElementInterfacepublic void setSpan(int span)
setSpan in interface TupleElementInterfacenumber - of rows or column spanned by this element
public TupleInterface getTuple()
throws OLAPException
getTuple in interface TupleElementInterfaceOLAPException - if a database error occurs
public java.lang.String getLabel()
throws OLAPException
getLabel in interface TupleElementInterfaceOLAPException - if a database error occurs
public java.lang.String getName()
throws OLAPException
getName in interface TupleElementInterfaceOLAPException - if a database error occurs
public int getTupleElementIndex()
throws OLAPException
getTupleElementIndex in interface TupleElementInterfaceOLAPException
public boolean isDrilledDown()
throws OLAPException
isDrilledDown in interface TupleElementInterfaceOLAPException - if a database error occurs
public boolean isContinued()
throws OLAPException
isContinued in interface TupleElementInterfaceOLAPException - if a database error occurs
public boolean isContextual()
throws OLAPException
isContextual in interface TupleElementInterfaceOLAPException
public java.lang.String getUniqueLevelName()
throws OLAPException
getUniqueLevelName in interface TupleElementInterfaceOLAPException - if a database error occurs
public int getLevelDepth()
throws OLAPException
getLevelDepth in interface TupleElementInterfacethe - level depth
OLAPException - if a database error occurs
public int getChildCount()
throws OLAPException
getChildCount in interface TupleElementInterfaceOLAPException - if a database error occurs
public java.util.Map getProperties()
throws OLAPException
getProperties in interface TupleElementInterfaceOLAPException - if a database error occurs
public int getMinimumCoordinate()
throws OLAPException
getMinimumCoordinate in interface TupleElementInterfaceOLAPException - if a database error occursTupleElementInterface.getMaximumCoordinate()
public int getMaximumCoordinate()
throws OLAPException
getMaximumCoordinate in interface TupleElementInterfaceOLAPException - if a database error occursTupleElementInterface.getMinimumCoordinate()
public void setMinimumCoordinate(int minimumCoordinate)
throws OLAPException
setMinimumCoordinate in interface TupleElementInterfaceminimum - Coordinate of this element
OLAPException - if a database error occursTupleElementInterface.setMaximumCoordinate(int)
public void setMaximumCoordinate(int maximumCoordinate)
throws OLAPException
setMaximumCoordinate in interface TupleElementInterfacemaximum - Coordinate of this element
OLAPException - if a database error occursTupleElementInterface.setMinimumCoordinate(int)
public java.lang.String getFormat()
throws OLAPException
getFormat in interface TupleElementInterfaceOLAPException
public int getSpanDepth()
throws OLAPException
TupleElementInterface
getSpanDepth in interface TupleElementInterfaceOLAPException
public com.sas.storage.olap.TupleElementType getType()
throws OLAPException
TupleElementInterface
getType in interface TupleElementInterfaceTupleElementType.TOTAL, TupleElementType.SUBTOTAL,
TupleElementType.MEASURE, TupleElementType.UNSPECIFIED
OLAPExceptionpublic void setSpanDepth(int depth)
TupleElementInterface
setSpanDepth in interface TupleElementInterfacepublic 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 | |||||||||||||