|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.olapi.data.source.Source | +--oracle.olapi.data.source.DateSource
A Source
whose elements have Date
objects as values. A DateSource
has an OLAP API data type of Date. This class implements some Source
methods so that they use Date
values, such as appendValue
, and implements other methods that perform Date operations, such as plusDays
.
Fields inherited from class oracle.olapi.data.source.Source |
COMPARISON_RULE_ASCENDING, COMPARISON_RULE_ASCENDING_NULLS_FIRST, COMPARISON_RULE_ASCENDING_NULLS_LAST, COMPARISON_RULE_DESCENDING, COMPARISON_RULE_DESCENDING_NULLS_FIRST, COMPARISON_RULE_DESCENDING_NULLS_LAST, COMPARISON_RULE_REMOVE, COMPARISON_RULE_SELECT |
Method Summary | |
DateSource |
appendValue(java.util.Date appendValue) Appends the specified Date object to this DateSource . |
DateSource |
appendValues(java.util.Date[] appendValues) Appends the specified Date objects to this DateSource . |
BooleanSource |
eq(java.util.Date rhs) Compares the value of each element of this DateSource to the specified Date value and determines they are equal. |
BooleanSource |
ge(java.util.Date rhs) Compares the value of each element of this DateSource to the specified Date value, and determines whether it has a greater or equal value. |
Source |
getDataType() Gets the fundamental Source that represents the OLAP API data type of this DateSource , which is Date. |
BooleanSource |
gt(java.util.Date rhs) Compares the value of each element of this DateSource to the specified Date value, and determines whether it has a greater value. |
BooleanSource |
le(java.util.Date rhs) Compares the value of each element of this DateSource to the specified Date value, and determines whether it has a lesser or equal value. |
BooleanSource |
lt(java.util.Date rhs) Compares the value of each element of this DateSource to the specified Date value, and determines whether it has a lesser value. |
BooleanSource |
ne(java.util.Date rhs) Compares the value of each element of this DateSource to the specified Date value, and determines whether it is not equal to the value. |
DateSource |
plusDays(int rhs) Adds the specified number of days to the value of each element of this DateSource . |
DateSource |
plusDays(NumberSource rhs) Adds the specified number of days to the value of each element of this DateSource . |
DateSource |
plusMonths(int rhs) Adds the specified number of months to the value of each element of this DateSource . |
DateSource |
plusMonths(NumberSource rhs) Adds the specified number of months to the value of each element of this DateSource . |
NumberSource |
positionOfValue(java.util.Date value) Identifies the positions of elements in this DateSource that have the specified Date values. |
NumberSource |
positionOfValues(java.util.Date[] values) Identifies the positions of elements in this DateSource that have the specified Date values. |
DateSource |
removeValue(java.util.Date value) Removes the elements of this DateSource that have the specified Date value. |
DateSource |
removeValues(java.util.Date[] values) Removes the elements of this DateSource that have the specified Date values. |
DateSource |
selectValue(java.util.Date value) Selects the elements of this DateSource that have the specified Date value. |
DateSource |
selectValues(java.util.Date[] values) Selects the elements of this DateSource that have the specified Date values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final DateSource appendValue(java.util.Date appendValue)
Date
object to this DateSource
.appendValue
- The Date
to append to this DateSource
.DateSource
that has the same elements as this DateSource
with an appended element that has the specified Date
as its value.Source.appendValue(Source value)
public final DateSource appendValues(java.util.Date[] appendValues)
Date
objects to this DateSource
.appendValue
- An array of Date
objects to append to this DateSource
.DateSource
that has the same elements as this DateSource
with appended elements that have the specified Date
objects as values.Source.appendValue(Source value)
public final BooleanSource eq(java.util.Date rhs)
DateSource
to the specified Date
value and determines they are equal.rhs
- The Date
value that you want to compare to the values of the elements of this DateSource
.BooleanSource
that has an element that has a value of true
when the value of the corresponding element of this DateSource
equals the specified Date
value, or false
when it does not.Source.eq(Source rhs)
public final BooleanSource ge(java.util.Date rhs)
DateSource
to the specified Date
value, and determines whether it has a greater or equal value. The BooleanSource
returned by this method has an element that is true
when the value of a given element of this DateSource
is greater than or equal to the specified Date
value, or a value of false
when it is not.rhs
- The Date
value that you want to compare to the values of the elements of this DateSource
.BooleanSource
that has an element with a value of true
when the value of a given element of this DateSource
is greater than or equal to the specified Date
value, or false
when it is not.Source.ge(Source rhs)
public Source getDataType()
Source
that represents the OLAP API data type of this DateSource
, which is Date.Source
that represents the OLAP API Date data type.public final BooleanSource gt(java.util.Date rhs)
DateSource
to the specified Date
value, and determines whether it has a greater value.rhs
- The Date
value that you want to compare to the values of the elements of this DateSource
.BooleanSource
that has an element with a value of true
when the value of the corresponding element of this DateSource
is greater than the specified Date
value, or false
when it is not.Source.gt(Source rhs)
public final BooleanSource le(java.util.Date rhs)
DateSource
to the specified Date
value, and determines whether it has a lesser or equal value.rhs
- The boolean
value that you want to compare to the values of the elements of this DateSource
.BooleanSource
that has an element with a value of true
when the value of the corresponding element of this DateSource
is less than or equal to the specified Date
value, or false
when it is not.Source.le(Source rhs)
public final BooleanSource lt(java.util.Date rhs)
DateSource
to the specified Date
value, and determines whether it has a lesser value.rhs
- The Date
value that you want to compare to the values of the elements of this DateSource
.BooleanSource
that has an element with a value of true
when the value of a given element of this DateSource
is less than the specified Date
value, or false
when it is not.Source.lt(Source rhs)
public final BooleanSource ne(java.util.Date rhs)
DateSource
to the specified Date
value, and determines whether it is not equal to the value.rhs
- The Date
value that you want to compare to the values of the elements of this DateSource
.BooleanSource
that has an element with a value of true
when the value of a given element of this DateSource
is not equal to the specified Date
value, or false
when it is equal to the specified value.Source.ne(Source rhs)
public final DateSource plusDays(int rhs)
DateSource
. For example, the following code creates a DateSource
, aDate
, and then adds five days to the value of aDate
. The dp
object is the DataProvider
.
// Creates an instance of the java.util.Date class Date now = new Date(); DateSource aDate = dp.createConstantSource(now); DateSource aDatePlus5 = aDate.plusDays(5);If the value of
aDate
is Wed Jan 15 14:24:23 GMT 2003
, then the value of aDatePlus5
is Mon Jan 20 14:24:23 GMT 2003
.rhs
- The int
value that specifies the number of days that you want to add to the values of the elements of this DateSource
.DateSource
that has the elements of this DateSource
with the Date
value of each element increased by the specified number of days.public final DateSource plusDays(NumberSource rhs)
DateSource
.rhs
- A NumberSource
whose element values specify the number of days that you want to add to the values of the elements of this DateSource
.DateSource
that has elements whose values are the Date
values of this DateSource
increased by the number of days specified by rhs
.public final DateSource plusMonths(int rhs)
DateSource
.rhs
- The int
value that specifies the number of months that you want to add to the values of the elements of this DateSource
.DateSource
that has the elements of this DateSource
with the Date
value of each element increased by the specified number of months.public final DateSource plusMonths(NumberSource rhs)
DateSource
.rhs
- A NumberSource
whose element values specify the number of months that you want to add to the values of the elements of this DateSource
.DateSource
that has elements whose values are the Date
values of this DateSource
increased by the number of months specified by rhs
.public final NumberSource positionOfValue(java.util.Date value)
DateSource
that have the specified Date
values.value
- A DateSource
that has the values that you want to compare to the values of the elements of this DateSource
.NumberSource
whose elements have int
values that identify the positions of the elements in this DateSource
that have the specified Date
values. If this DateSource
does not have any elements that have the specified values, then this method returns an empty NumberSource
, which has no elements.Source.positionOfValues(Source values)
public final NumberSource positionOfValues(java.util.Date[] values)
DateSource
that have the specified Date
values.value
- An array of Date
values that you want to compare to the values of the elements of this DateSource
.NumberSource
whose elements have int
values that identify the positions of the elements in this DateSource
that have the specified Date
values. If this DateSource
does not have any elements that have the specified values, then this method returns an empty NumberSource
, which has no elements.Source.positionOfValues(Source values)
public final DateSource removeValue(java.util.Date value)
DateSource
that have the specified Date
value.value
- The Date
value you do not want to have in the returned DateSource
.DateSource
that has the elements of this DateSource
that do not have the specified Date
value.Source.removeValue(Source value)
public final DateSource removeValues(java.util.Date[] values)
DateSource
that have the specified Date
values.value
- A DateSource
that has the Date
values you do not want to have in the returned DateSource
.DateSource
that has the elements of this DateSource
that do not have the specified Date
values.Source.removeValues(Source values)
public final DateSource selectValue(java.util.Date value)
DateSource
that have the specified Date
value.value
- The Date
value to compare to the values of the elements of this DateSource
.DateSource
that has the elements of this DateSource
that have the specified Date
value.Source.selectValue(Source value)
public final DateSource selectValues(java.util.Date[] values)
DateSource
that have the specified Date
values.value
- A DateSource
that has the values to compare to the values of the elements of this DateSource
.DateSource
that has the elements of this DateSource
that have the specified Date
values.Source.selectValues(Source values)
|
Oracle® OLAP Java API Reference 10g Release 2 (10.2) B14348-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |