|
Oracle OLAP Java API Reference 10g Release 1 (10.1) B10994-01 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A Cursor that has a value at its current position. A value can be any of the OLAP API data types or a Source.
The value at the current position of a ValueCursor can also be null, in which case the hasCurrentValue method returns false. An example of a ValueCursor with an element whose value is null is the Cursor for a Source that was returned by the getVoidSource method on a DataProvider. Such a Source has one element whose value is null. In contrast, a Source returned by the getEmptySource method on a DataProvider has no elements, so it has no values, not even a null value. You cannot create a ValueCursor for an empty Source because the result set has no elements.
A ValueCursor can have a single value or many values. For a ValueCursor that is a descendent of a CompoundCursor, the number of values it has, and therefore the number of positions, is specified by the set of values of the slower-varying outputs of the CompoundCursor. For example, a measure that has three dimensions might have a single value for any one set of its selected dimension values. If an application creates a query based on the measure and each dimension is an output in the query, then the base ValueCursor for the query has a single value (and only one position) for each set of values of the outputs.
| Fields inherited from class oracle.olapi.data.cursor.Cursor |
FETCH_SIZE_NOT_SPECIFIED |
| Method Summary | |
boolean |
getCurrentBoolean()Gets the boolean value at the current position in the ValueCursor. |
java.util.Date |
getCurrentDate()Gets the Date value at the current position in the ValueCursor. |
double |
getCurrentDouble()Gets the double value at the current position in the ValueCursor. |
float |
getCurrentFloat()Gets the float value at the current position in the ValueCursor. |
int |
getCurrentInteger()Gets the int value at the current position in the ValueCursor. |
short |
getCurrentShort()Gets the short value at the current position in the ValueCursor. |
SourceIdentifier |
getCurrentSource()Gets the SourceIdentifier for the ValueCursor. |
java.lang.String |
getCurrentString()Gets the String value at the current position in the ValueCursor. |
java.lang.Object |
getCurrentValue()Gets the value at the current position of the ValueCursor. |
boolean |
hasCurrentValue()Indicates whether the ValueCursor has a value at its current position. |
| Methods inherited from interface oracle.olapi.data.cursor.Cursor |
getExtent, getFetchSize, getParentEnd, getParentStart, getPosition, getSource, next, setFetchSize, setPosition |
| Method Detail |
public boolean hasCurrentValue()
ValueCursor has a value at its current position.true if the ValueCursor has a value at its current position and false if it does not.public java.lang.Object getCurrentValue()
ValueCursor. The value can be a Source or any of the specific data types such as boolean, integer, or String. This method is less efficient than the more specific methods, but getCurrentValue can return any value.public boolean getCurrentBoolean()
boolean value at the current position in the ValueCursor.boolean value at the current position.public java.lang.String getCurrentString()
String value at the current position in the ValueCursor.String value at the current position.public short getCurrentShort()
short value at the current position in the ValueCursor.short value at the current position.public int getCurrentInteger()
int value at the current position in the ValueCursor.int value at the current position.public float getCurrentFloat()
float value at the current position in the ValueCursor.float value at the current position.public double getCurrentDouble()
double value at the current position in the ValueCursor.double value at the current position.public java.util.Date getCurrentDate()
Date value at the current position in the ValueCursor.Date value at the current position.public SourceIdentifier getCurrentSource()
SourceIdentifier for the ValueCursor.SourceIdentifier for the ValueCursor.
|
Oracle OLAP Java API Reference 10g Release 1 (10.1) B10994-01 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||