|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.iisc.jwc.jsheet.db.JSDbCursor
Cursors are the mechanism through which data that is queried by a SELECT statement is retrieved.
Field Summary | |
static int |
COLUMN_HEADERS
The data for the column heaers is retrieved. |
static int |
FETCH_ABSOLUTE
An integer is included with this command to specify the row in the active set of rows from which data is retrieved. |
static int |
FETCH_ALL
All the data in the active set of rows is retrieved. |
static int |
FETCH_CURRENT
The data in the current row is retrieved. |
static int |
FETCH_FIRST
The data from the first row in the active set of rows is retrieved. |
static int |
FETCH_LAST
The data from the last row in the active set of rows is retrieved. |
static int |
FETCH_NEXT
The data from the next row in the active set of rows is retrieved. |
static int |
FETCH_PREVIOUS
The data from the previous row in the active set of rows is retrieved. |
static int |
FETCH_RELATIVE
An integer is included with this command to specify how many rows from the current cursor position the cursor is to move before retrieving data. |
static int |
FETCH_ROWS
Data is retrieved from multiple rows in the active set of rows. |
Constructor Summary | |
JSDbCursor(com.iisc.jwc.orb.CCursor c)
For internal use only! |
Method Summary | |
void |
closeCursor()
This method closes the specified SQL database cursor. |
JSValueMatrix |
describeColumns()
Describes the columns in the result set. |
JSDbRowSet |
fetch(int which)
Retrieves data based upon the type of fetch specified. |
JSDbRowSet |
fetchAt(int which,
int num)
Retrieves data based upon the specified type of fetch and position. |
Range |
fetchInto(java.lang.String startCell,
int mode)
Retrieves data based upon the type of fetch specified and places the results at the starting cell. |
int |
getNumCols()
Returns the number of columns in the result set. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int COLUMN_HEADERS
public static final int FETCH_ABSOLUTE
public static final int FETCH_ALL
public static final int FETCH_CURRENT
public static final int FETCH_FIRST
public static final int FETCH_LAST
public static final int FETCH_NEXT
public static final int FETCH_PREVIOUS
public static final int FETCH_RELATIVE
public static final int FETCH_ROWS
Constructor Detail |
public JSDbCursor(com.iisc.jwc.orb.CCursor c)
c
- for internal use only!Method Detail |
public void closeCursor() throws JSDbException
JSDbException
- An exception occured while fetching the data.public JSValueMatrix describeColumns() throws JSDbException
Result Set Column | Content |
1 | Table qualifier |
2 | Table owner |
3 | Table name |
4 | Column name |
5 | Column type |
6 | Data source-dependent data type name |
7 | Column precision |
8 | Column length |
9 | Column scaling factor |
10 | Column radix |
11 | Column null status |
12 | Remarks |
JSDbException
- An exception occured while communicating with the database.public JSDbRowSet fetch(int which) throws JSDbException
which
- The type of fetch to perform (see class static variables).
JSDbException
- An exception occured while fetching the data.public JSDbRowSet fetchAt(int which, int num) throws JSDbException
which
- The type of fetch to perform (see class static variables).num
- The start position for the fetch.
JSDbException
- An exception occured while fetching the data.public Range fetchInto(java.lang.String startCell, int mode) throws JSDbException, JSException
startCell
- The location in the spreadsheet to place the result set.
This must be a fully qualified name formatted as:
BookName.jss:SheetName!A2. A range may also be used instead of a single cell.
If a range is used and the range is smaller than the result set, the result
set will be truncated.mode
- The type of fetch to perform (see class static variables).
JSDbException
- An exception occured while fetching the data.
JSException
- An exception occured communicating with JSServer.public int getNumCols() throws JSDbException
JSDbException
- An exception occured while fetching the data.
|
Email JSheet Support | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |