|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultSetInterface
An interface representing a multidimensional result set.
A ResultSetInterface object is often generated by executing a query on an OLAP provider. The OLAPDataSetInterface, which extends ResultSetInterface, may be used for establishing a connection and executing a query.
The ResultSetInterface provides methods for retrieving metadata and data. The metadata that is available from the ResultSetInterface is specific to the result set, and it is not the same as the metadata defining a Cube. The metadata available via the getResultSetMetadata() method defines the structure of the ResultSet. Details on this distinction between ResultSet metadata and the metadata for a Cube can be found in the documentation for the ResultSetMetadataInterface. The cells represent the data that arises at the crossing between axes. Each cell in the result set has a unique ordinal assigned to it. An algorithm is used to determine the cell ordinal; however, the algorithm that's used may be implementation specific. Both formatted and unformatted data may be available for each cell.
When an error occurs an OLAPException is thrown, which indicates the specific nature of the problem.
ResultSetMetadataInterface
Field Summary | |
---|---|
static int |
DEFAULT_END_CELL
|
static int |
DEFAULT_ENDCELL
Indicates all remaining cells. |
Method Summary | |
---|---|
void |
close()
Close the ResultSetInterface |
long |
getCellCount()
Returns the total number of cells defined in the ResultSet. |
java.lang.Object[] |
getCells(long startCell,
long endCell)
Returns the unformatted data slice beginning with the startCell (upper left corner ordinal) and ending with endCell (lower right corner ordinal). |
java.lang.String[] |
getFormattedCells(long startCell,
long endCell)
Returns the formatted data slice beginning with the startCell (upper left corner ordinal) and ending with endCell (lower right corner ordinal). |
java.lang.String |
getQueryStatement()
Returns the most recent query statement. |
ResultSetMetadataInterface |
getResultSetMetadata()
Returns the metadata that defines the structure of the ResultSet |
boolean |
isReadOnly()
An instance of the OLAPDataSetInterface may be readOnly. |
void |
setCells(long startCell,
long endCell,
java.lang.Object[] cellValues)
Sets the values for the cells. |
void |
setFormattedCells(long startCell,
long endCell,
java.lang.String[] cellValues)
Sets the formatted values for the cells. |
Field Detail |
---|
static final int DEFAULT_ENDCELL
static final int DEFAULT_END_CELL
Method Detail |
---|
ResultSetMetadataInterface getResultSetMetadata() throws OLAPException
OLAPException
- if a database error occursjava.lang.String getQueryStatement() throws OLAPException
OLAPException
- if a database error occursboolean isReadOnly() throws OLAPException
OLAPException
- If a database-access error occursjava.lang.Object[] getCells(long startCell, long endCell) throws OLAPException
startCell
- A zero-based ordinal position for the starting cell.endCell
- A zero-based ordinal position for the ending cell where DEFAULT_ENDCELL can be used to
indicate all remaining cells
OLAPException
- if a database error occursjava.lang.String[] getFormattedCells(long startCell, long endCell) throws OLAPException
startCell
- A zero-based ordinal position for the starting cell.endCell
- A zero-based ordinal position for the ending cell where DEFAULT_ENDCELL can be used to
indicate all remaining cells
OLAPException
- if a database error occurslong getCellCount() throws OLAPException
OLAPException
- if a database error occursvoid setCells(long startCell, long endCell, java.lang.Object[] cellValues) throws OLAPException
startCell
- A zero-based ordinal position for the starting cell.endCell
- A zero-based ordinal position for the ending cell.cellValues
- Sets the values for the cells.
OLAPException
- if a database error occursvoid setFormattedCells(long startCell, long endCell, java.lang.String[] cellValues) throws OLAPException
startCell
- A zero-based ordinal position for the starting cell.endCell
- A zero-based ordinal position for the ending cell.cellValues
- Sets the formatted values for the cells.
OLAPException
- if a database error occursvoid close() throws OLAPException
OLAPException
- if a database error occurs
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |