Skip navigation links

Oracle® OLAP Java API Reference
11g Release 2 (11.2)

E10794-06


oracle.olapi.syntax
Class SQLDataType

java.lang.Object
  extended by oracle.olapi.syntax.SyntaxObject
      extended by oracle.olapi.syntax.SQLDataType


public final class SQLDataType
extends SyntaxObject

An object that represents an Oracle Database data type with precision information.


Constructor Summary
SQLDataType(DataType type)
          Creates a SQLDataType that has the default precision of the specified data type.
SQLDataType(java.lang.String sqlText)
          Creates a SQLDataType that is based on a SQL statement.

 

Method Summary
 DataType getDataType()
          Gets the DataType that is associated with this SQLDataType.
 java.lang.String getSQLText()
          Gets the SQL statement that is associated with this SQLDataType.
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the appropriate method of a SyntaxObjectVisitor and passes that method the SyntaxObject and an Object.

 

Methods inherited from class oracle.olapi.syntax.SyntaxObject
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax

 

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

 

Constructor Detail

SQLDataType

public SQLDataType(java.lang.String sqlText)
Creates a SQLDataType that is based on a SQL statement.
Parameters:
sqlText - A String that contains a SQL statement that defines a data type.

SQLDataType

public SQLDataType(DataType type)
Creates a SQLDataType that has the default precision of the specified data type.
Parameters:
type - The DataType to associate with the new SQLDataType.

Method Detail

visit

public java.lang.Object visit(SyntaxObjectVisitor visitor,
                              java.lang.Object context)
Calls the appropriate method of a SyntaxObjectVisitor and passes that method the SyntaxObject and an Object.
Specified by:
visit in class SyntaxObject
Parameters:
visitor - A SyntaxObjectVisitor.
context - An Object.
Returns:
The Object returned by the visitClearCommand method.

getDataType

public DataType getDataType()
Gets the DataType that is associated with this SQLDataType.
Returns:
The DataType associated with this SQLDataType.

getSQLText

public java.lang.String getSQLText()
Gets the SQL statement that is associated with this SQLDataType.
Returns:
A String that contains the SQL statement associated with this SQLDataType.

Skip navigation links

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