|
Oracle® OLAP Java API Reference 11g Release 2 (11.2) E10794-01 Beta Draft |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.olapi.data.source.Source
oracle.olapi.data.source.DateSource
public final class DateSource
A Source
whose elements have Date
objects as
values.
A DateSource
has an OLAP Java 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
.
Field Summary |
---|
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 Java 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.public final DateSource appendValues(java.util.Date[] appendValues)
Date
objects to this
DateSource
.
appendValues
- 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.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.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.public Source getDataType()
Source
that represents the OLAP Java API
data type of this DateSource
, which is Date.
getDataType
in class Source
Source
that represents the OLAP Java
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.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.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.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.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.public final NumberSource positionOfValues(java.util.Date[] values)
DateSource
that have the specified Date
values.
values
- 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.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.public final DateSource removeValues(java.util.Date[] values)
DateSource
that have the
specified Date
values.
values
- 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.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.public final DateSource selectValues(java.util.Date[] values)
DateSource
that have the
specified Date
values.
values
- 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.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |