|
Oracle® OLAP Java API Reference 12c Release 1 (12.1) E17708-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.olapi.syntax.SyntaxObject
oracle.olapi.syntax.DataObject
oracle.olapi.syntax.Expression
oracle.olapi.syntax.TypedExpression
oracle.olapi.syntax.RowExpression
oracle.olapi.syntax.IntervalExpression
public final class IntervalExpression
A RowExpression that represents an interval expression, which is similar to a SQL interval expression. An IntervalExpression resolves to a value that has a data type of INTERVAL_YEAR_TO_MONTH or INTERVAL_DAY_TO_SECOND. For more information, see Interval Expressions in Oracle Database SQL Language Reference.
| Field Summary | |
|---|---|
static java.lang.String |
DAY_TO_SECONDA constant that represents the DAY_TO_SECOND operator for an IntervalExpression. |
static java.lang.String |
YEAR_TO_MONTHA constant that represents the YEAR_TO_MONTH operator for an IntervalExpression. |
| Constructor Summary | |
|---|---|
IntervalExpression(TypedExpression base, java.lang.String operator, TypedExpression firstPrecision, TypedExpression secondPrecision)Creates an IntervalExpression with the specified base expression, operator, and precision values. |
|
| Method Summary | |
|---|---|
TypedExpression |
getBaseExpression()Gets the base expression of this IntervalExpression. |
TypedExpression |
getFirstPrecisionExpression()Gets the first, or leading field, precision value of this IntervalExpression. |
java.lang.String |
getOperator()Gets the operator for this IntervalExpression. |
TypedExpression |
getSecondPrecisionExpression()Gets the second, or fractional second, precision value of this IntervalExpression. |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)Calls the visitIntervalExpression method of the SyntaxObjectVisitor and passes that method this IntervalExpression and an Object. |
| Methods inherited from class oracle.olapi.syntax.RowExpression |
|---|
isCompositeObject |
| 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 |
| Field Detail |
|---|
public static final java.lang.String DAY_TO_SECOND
DAY_TO_SECOND operator for an IntervalExpression.
public static final java.lang.String YEAR_TO_MONTH
YEAR_TO_MONTH operator for an IntervalExpression.
| Constructor Detail |
|---|
public IntervalExpression(TypedExpression base,
java.lang.String operator,
TypedExpression firstPrecision,
TypedExpression secondPrecision)
IntervalExpression with the specified base expression, operator, and precision values.
base - A TypedExpression that is the base of the interval expression. In the SQL language reference, this is the interval_value_expr expression.operator - One of the constants of this class.firstPrecision - A TypedExpression that resolves to an integer value from 0 to 9. In the SQL language reference, this is the leading_field_precision value.secondPrecision - A TypedExpression that resolves to an integer value from 0 to 9. In the SQL language reference, this is the fractional_second_precision value. Use this parameter only with the DAY_TO_SECOND operator. If the operator is MONTH_TO_YEAR, then specify null for this parameter.| Method Detail |
|---|
public java.lang.Object visit(SyntaxObjectVisitor visitor,
java.lang.Object context)
visitIntervalExpression method of the SyntaxObjectVisitor and passes that method this IntervalExpression and an Object.visit in class SyntaxObjectvisitor - A SyntaxObjectVisitor.context - An Object.Object returned by the visitIntervalExpression method.public java.lang.String getOperator()
IntervalExpression.String that contains the operator for this IntervalExpression, which is the value of one of the constants of this class.public TypedExpression getBaseExpression()
IntervalExpression.TypedExpression that resolves to an interval value expression.public TypedExpression getFirstPrecisionExpression()
IntervalExpression.TypedExpression that resolves to an integer value.public TypedExpression getSecondPrecisionExpression()
IntervalExpression. This parameter is valid only for an interval expression with the DAY_TO_SECOND operator.TypedExpression that resolves to an integer value.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||