Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

oracle.olapi.metadata.mtm
Class MtmCompoundExpression

java.lang.Object
  |
  +--oracle.olapi.metadata.BaseMetadataObject
        |
        +--oracle.olapi.metadata.mtm.MtmObject
              |
              +--oracle.olapi.metadata.mtm.MtmExpression
                    |
                    +--oracle.olapi.metadata.mtm.MtmCompoundExpression

public class MtmCompoundExpression
extends MtmExpression

An MtmExpression that is made up of two or more MtmExpression objects, which are the subexpressions of the MtmCompoundExpression. This class usually represents a multicolumn level, in which the mapping of a value requires more than one relational column.

For example, suppose a time hierarchy draws values from Year, Quarter, and Month columns. The values of Month do not include a Year component (that is, a value would be JAN, not JAN-99). Therefore, to represent a month, you must specify one value from the Year column and one value from the Month column. In this case, the Month level is represented by an MtmCompoundExpression containing two columns, one for Year and one for Month.

Typically, the concatenation string that brings the two columns together is a double colon (::), so one value of an MtmColumnExpression that represents the Month level from our example might be 1999::JAN.


Method Summary
 java.lang.Object acceptVisitor(MtmObjectVisitor visitor, java.lang.Object context)
          Calls the visitMtmCompoundExpression method of the specified MtmObjectVisitor and passes that method this MtmCompoundExpression and the specified context object.
 java.lang.String getConcatenationString()
          Gets the concatenation string for this MtmCompoundExpression.
 java.util.List getSubExpressions()
          Gets the list of subexpressions for this MtmCompoundExpression.
 void setConcatenationString(java.lang.String newConcatenationString)
          Specifies the concatenation string for this MtmCompoundExpression.

 

Methods inherited from class oracle.olapi.metadata.BaseMetadataObject
getID

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

acceptVisitor

public java.lang.Object acceptVisitor(MtmObjectVisitor visitor,
                                      java.lang.Object context)
Calls the visitMtmCompoundExpression method of the specified MtmObjectVisitor and passes that method this MtmCompoundExpression and the specified context object.
Parameters:
visitor - An MtmObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitMtmCompoundExpression method.
Overrides:
acceptVisitor in class MtmObject

getConcatenationString

public java.lang.String getConcatenationString()
Gets the concatenation string for this MtmCompoundExpression.
Returns:
A String that is the concatenation string for this MtmCompoundExpression.

getSubExpressions

public java.util.List getSubExpressions()
Gets the list of subexpressions for this MtmCompoundExpression.
Returns:
A List of MtmExpression objects that are the subexpressions for this MtmCompoundExpression.

setConcatenationString

public void setConcatenationString(java.lang.String newConcatenationString)
Specifies the concatenation string for this MtmCompoundExpression.
Parameters:
newConcatenationString - A String that specifies the concatenation string for this MtmCompoundExpression.

Oracle OLAP Java API Reference
10g Release 1 (10.1)

B10994-01

Copyright © 2002, 2003, Oracle. All Rights Reserved.