Skip navigation links

Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-04


oracle.olapi.metadata.mtm
Class MtmSelectStatement

java.lang.Object
  extended byoracle.olapi.metadata.BaseMetadataObject
      extended byoracle.olapi.metadata.mtm.MtmObject
          extended byoracle.olapi.metadata.mtm.MtmTabularSource
              extended byoracle.olapi.metadata.mtm.MtmSelectStatement

All Implemented Interfaces:
MetadataObject

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.
Specified by:
acceptVisitor in class MtmObject
Parameters:
visitor - An MtmObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitMtmSelectStatement method.

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.

Skip navigation links

Oracle® OLAP Java API Reference
10g Release 2 (10.2)

B14348-04


Copyright © 2002, 2007, Oracle. All rights reserved.