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

B10994-01

oracle.olapi.metadata.mtm
Class MtmSelectStatement

java.lang.Object
  |
  +--oracle.olapi.metadata.BaseMetadataObject
        |
        +--oracle.olapi.metadata.mtm.MtmObject
              |
              +--oracle.olapi.metadata.mtm.MtmTabularSource
                    |
                    +--oracle.olapi.metadata.mtm.MtmSelectStatement

public class MtmSelectStatement
extends MtmTabularSource

An MtmTabularSource that represents a logical table based on a SQL SELECT statement. An MtmSelectStatement stores the text of the SELECT statement on which it is based.

An MtmSelectStatement is often used to specify the source tables in the FROM clause of a SELECT statement that is constructed by the Oracle OLAP SQL generator. For example, the stored SELECT statement could be the following:

    SELECT SALES+100 CALC, PROD, GEOG
    FROM ANALYTIC_FACTS

In this case, the SQL generator might produce this code.

    SELECT *
    FROM (SELECT SALES+100 CALC, PROD, GEOG FROM ANALYTIC_FACTS) V1

Method Summary
 java.lang.Object acceptVisitor(MtmObjectVisitor visitor, java.lang.Object context)
          Calls the visitMtmSelectStatement method in the specified MtmObjectVisitor and passes that method this MtmSelectStatement and the specified context object.
 java.lang.String getSelectStatement()
          Gets the SELECT statement that is stored by this MtmSelectStatement.

 

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 visitMtmSelectStatement method in the specified MtmObjectVisitor and passes that method this MtmSelectStatement and the specified context object.
Parameters:
visitor - An MtmObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitMtmSelectStatement method.
Overrides:
acceptVisitor in class MtmObject

getSelectStatement

public java.lang.String getSelectStatement()
Gets the SELECT statement that is stored by this MtmSelectStatement.
Returns:
A String that contains the SELECT statement for this MtmSelectStatement.

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

B10994-01

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