Skip navigation links

Oracle® OLAP Java API Reference
11g Release 1 (11.1)

B28128-01


oracle.olapi.syntax
Class BinaryOperatorExpression

java.lang.Object
  extended by oracle.olapi.syntax.SyntaxObject
      extended by oracle.olapi.syntax.DataObject
          extended by oracle.olapi.syntax.Expression
              extended by oracle.olapi.syntax.TypedExpression
                  extended by oracle.olapi.syntax.RowExpression
                      extended by oracle.olapi.syntax.BinaryOperatorExpression

All Implemented Interfaces:
FunctionArgument

public final class BinaryOperatorExpression
extends RowExpression

A RowExpression that represents a binary operator and two expressions that are the operands of the expression. A BinaryOperatorExpression is like a compound expression in SQL. The binary operators specify addition, subtraction, multiplication, division, or concatenation operations.


Field Summary
static java.lang.String CONCAT
          A constant that represents the || concatenation operator.
static java.lang.String DIVIDE
          A constant that represents the / division operator.
static java.lang.String MINUS
          A constant that represents the - subtraction binary operator.
static java.lang.String PLUS
          A constant that represents the + addition binary operator.
static java.lang.String TIMES
          A constant that represents the * multiplication operator.

 

Constructor Summary
BinaryOperatorExpression(java.lang.String operator, TypedExpression[] arguments)
          Creates a BinaryOperatorExpression that represents the operation specified by the binary operator upon the arguments.
BinaryOperatorExpression(TypedExpression lhsArgument, java.lang.String operator, TypedExpression rhsArgument)
          Creates a BinaryOperatorExpression that represents the operation specified by the binary operator upon the arguments.

 

Method Summary
 TypedExpression[] getArguments()
          Gets the expressions that are the arguments that are associated with this BinaryOperatorExpression.
 java.lang.String getOperator()
          Gets the operator that is associated with this BinaryOperatorExpression.
 java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
          Calls the visitBinaryOperatorExpression method of the SyntaxObjectVisitor and passes that method this BinaryOperatorExpression and an Object.

 

Methods inherited from class oracle.olapi.syntax.RowExpression
isCompositeObject

 

Methods inherited from class oracle.olapi.syntax.TypedExpression
abs, acos, addMonths, addMonths, ascii, asciiStr, asin, atan, atan2, between, bFileName, binToNum, bitAnd, cast, ceil, charToROWID, chr, chr, coalesce, compose, concat, concat, convert, convert, cos, cosh, currentDate, currentTime, dbTimeZone, decode, decompose, deref, div, div, div, div, div, dump, emptyBLOB, emptyCLOB, eq, eq, eq, eq, eq, existsNode, exp, extractDay, extractHour, extractMinute, extractMonth, extractSecond, extractTimeZoneAbbr, extractTimeZoneHour, extractTimeZoneMinute, extractTimeZoneRegion, extractXML, extractYear, floor, fromTZ, ge, ge, ge, ge, ge, getDataType, greatest, gt, gt, gt, gt, gt, hexToRAW, in, initcap, instr, instr2, instr4, instrB, instrC, isInfinite, isNAN, isNotNull, isNull, lastDay, le, le, le, le, le, least, length, length2, length4, lengthB, lengthC, like, like, like2, like4, likeC, ln, localTimestamp, log, lower, lpad, lt, lt, lt, lt, lt, ltrim, minus, minus, minus, minus, minus, minus, mod, monthsBetween, nanvl, ne, ne, ne, ne, ne, newTime, nextDay, nlsCharsetDeclLen, nlsCharsetID, nlsCharsetName, nlsInitcap, nlsLower, nlsSort, nlsUpper, notIn, nullIf, numToDSInterval, numToYMInterval, nvl, nvl2, oraHash, plus, plus, plus, plus, plus, power, rawToHex, rawToNHex, regexpInstr, regexpReplace, regexpSubstr, remainder, replace, round, rowIDToChar, rowIDToNChar, rpad, rtrim, scnToTimestamp, sessionTimeZone, sign, sin, sinh, soundex, sqrt, substr, substr2, substr4, substrB, substrC, sysContext, sysDate, sysExtractUTC, sysGUID, sysTimestamp, sysTypeID, tan, tanh, times, times, times, times, times, timestampToSCN, toBinaryDouble, toBinaryFloat, toChar, toChar, toCLOB, toDate, toDate, toDSInterval, toLOB, toMultiByte, toNChar, toNChar, toNCLOB, toNumber, toNumber, toNumber, toSingleByte, toTimestamp, toTimestampTZ, toYMInterval, translate, translateUsingCharCS, translateUsingNCharCS, treat, trim, trimLeading, trimTrailing, trunc, tzOffset, UID, unistr, upper, USER, userEnv, vsize, widthBucket

 

Methods inherited from class oracle.olapi.syntax.Expression
getSource

 

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

 

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

 

Field Detail

PLUS

public static final java.lang.String PLUS
A constant that represents the + addition binary operator.
See Also:
Constant Field Values

MINUS

public static final java.lang.String MINUS
A constant that represents the - subtraction binary operator.
See Also:
Constant Field Values

DIVIDE

public static final java.lang.String DIVIDE
A constant that represents the / division operator.
See Also:
Constant Field Values

TIMES

public static final java.lang.String TIMES
A constant that represents the * multiplication operator.
See Also:
Constant Field Values

CONCAT

public static final java.lang.String CONCAT
A constant that represents the || concatenation operator.
See Also:
Constant Field Values

Constructor Detail

BinaryOperatorExpression

public BinaryOperatorExpression(java.lang.String operator,
                                TypedExpression[] arguments)
Creates a BinaryOperatorExpression that represents the operation specified by the binary operator upon the arguments.
Parameters:
operator - One of the constants of this class, such as BinaryOperatorExpression.PLUS.
arguments - An array of TypedExpression objects upon which the binary operator acts.

BinaryOperatorExpression

public BinaryOperatorExpression(TypedExpression lhsArgument,
                                java.lang.String operator,
                                TypedExpression rhsArgument)
Creates a BinaryOperatorExpression that represents the operation specified by the binary operator upon the arguments.
Parameters:
lhsArgument - A TypedExpression for the left-hand argument of the operation.
operator - One of the constants of this class, such as BinaryOperatorExpression.PLUS.
rhsArgument - A TypedExpression for the right-hand argument of the operation.

Method Detail

visit

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

getOperator

public java.lang.String getOperator()
Gets the operator that is associated with this BinaryOperatorExpression.
Returns:
A String that contains the operator of this BinaryOperatorExpression.

getArguments

public TypedExpression[] getArguments()
Gets the expressions that are the arguments that are associated with this BinaryOperatorExpression.
Returns:
An array of the TypedExpression objects associated with this BinaryOperatorExpression.

Skip navigation links

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