|
Oracle® OLAP Java API Reference 11g Release 2 (11.2) E10794-03 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.olapi.data.source.Parameter
oracle.olapi.data.source.DateParameter
public class DateParameter
A Parameter that specifies a Date value
that you use in creating a query.
After creating the query, you can change the value of the
DateParameter and thereby change the selection of
dimension or measure elements that the query represents.
The createSource method creates a parameterized
DateSource.
You use the parameterized DateSource as a parameter to
a method that selects one or more elements of another Source
and produces a derived Source.
You can then create a Cursor for the Source
to retrieve the results of the query.
You can change the selection of elements that the derived
Source represents by changing the value of the
DateParameter with one of its setValue methods.
The Cursor for the query Source then has the values
of the new selection.
You do not need to create a new Cursor.
You can instead just set the position of the existing Cursor
to its first position and get the values for the new selection from the
Cursor.
| Constructor Summary | |
|---|---|
DateParameter(DataProvider dataProvider,
java.util.Date initialValue)
Creates a DateParameter that has the specified
Date value. |
|
| Method Summary | |
|---|---|
java.lang.Object |
acceptVisitor(ParameterVisitor visitor,
java.lang.Object context)
Calls the visitDateParameter method of the specified
ParameterVisitor and passes that method this
DateParameter and the specified context
Object. |
java.util.Date |
getValue()
Gets the value of this DateParameter. |
java.lang.Object |
getValueObject()
Gets the value of this DateParameter as an
Object. |
void |
setValue(java.util.Date value)
Sets the value of this DateParameter to the specified
Date. |
| Methods inherited from class oracle.olapi.data.source.Parameter |
|---|
createSource, getDataProvider, getID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateParameter(DataProvider dataProvider,
java.util.Date initialValue)
DateParameter that has the specified
Date value.
dataProvider - The DataProvider that you are using.initialValue - The Date value that you want this
StringParameter to have.| Method Detail |
|---|
public final java.lang.Object acceptVisitor(ParameterVisitor visitor,
java.lang.Object context)
visitDateParameter method of the specified
ParameterVisitor and passes that method this
DateParameter and the specified context
Object.
acceptVisitor in class Parametervisitor - An instance a class derived from the
ParameterVisitor class.context - An Object.
Object returned by the
visitDateParameter method of
the specified ParameterVisitor.public final java.util.Date getValue()
DateParameter.
DateParameter.public final java.lang.Object getValueObject()
DateParameter as an
Object.
getValueObject in class ParameterDateParameter as an
Object.public final void setValue(java.util.Date value)
DateParameter to the specified
Date.
value - A Date that you want this
DateParameter to have as its value.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||