## DatabaseObject.RowSet

    Object
       |
       +--DatabaseObject.RowSet

SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods

Methods Summary
`Number` | `getColumnCount()` Get the number of columns of this result, identical to the length attribute.
`String` | `getColumnDatatypeName()` Get the name of the datatype associated with the column.
`Number` | `getColumnDatatypeNumber()` Get the number of the datatype associated with the column.
`Object` | `getColumnItem(<String> name)` Get the value of a column by its name (the value can be accessed by number simply indexing them - this is not faster than by name for FESI).
`String` | `getColumnName()` Get the name of a column, in a way which is always working.
`Object` | `getLastError()` Return the last error which occured when connecting or executing a statement, null (which test as false) if none.
`void` | `getMetaData()` Return the meta data attached to the row set.
`Boolean` | `hasMoreRows()` Optimistic view of the possibility that more rows are present.
`Boolean` | `next()` Get the next row of results, return true if there is a next row, false otherwise.

Method Detail

### getColumnCount

    Number getColumnCount()

Get the number of columns of this result, identical to the length attribute. It is possible to call this routine before the first record is fetched.

Returns:

Number of colums

### getColumnDatatypeName

    String getColumnDatatypeName()

Get the name of the datatype associated with the column. See the jdbc documentation for details. Some database do not return a valid name, in that case undefined is returned. It is possible to call this routine before the first record is fetched.

Returns:

String containing the name of the data-type associated with the column

### getColumnDatatypeNumber

    Number getColumnDatatypeNumber()

Get the number of the datatype associated with the column. See the jdbc documentation for details. It is possible to call this routine before the first record is fetched.

Returns:

Number of data-types associated with the column

### getColumnItem

    Object getColumnItem(<String> name)

Get the value of a column by its name (the value can be accessed by number simply indexing them - this is not faster than by name for FESI). The proper value is returned even if the name is used for a property of the RowSetAccess protocol, as next or length. A record must be available (that is next must have been called at least once).

Parameters:

`name` - as String, name of the column

Returns:

value of a column

### getColumnName

    String getColumnName()

Get the name of a column, in a way which is always working. The names can be accessed as properties, but they are shadowed by the functions and properties of the RowSetAccess prototype object. It is possible to call this routine before the first record is fetched.

Returns:

String containing the name of a column

### getLastError

    Object getLastError()

Return the last error which occured when connecting or executing a statement, null (which test as false) if none.

Returns:

last error or else null if none

### getMetaData

    void getMetaData()

Return the meta data attached to the row set.

### hasMoreRows

    Boolean hasMoreRows()

Optimistic view of the possibility that more rows are present.
Currently only returns false if next returned false. It is possible to call this routine at any time.

Returns:

Boolean false if calling next() returned false

### next

    Boolean next()

Get the next row of results, return true if there is a next row, false otherwise. Note that next must be called before the first row can be accesses.

Returns:

Boolean true if a next row exists else false

SUMMARY: Constructor | Properties | Methods | DETAIL: Constructor | Properties | Methods

Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007