## DatabaseObject

    Object
       |
       +--DatabaseObject

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

Methods Summary
`Number` | `executeCommand(<String> sqlString)` Used to implement INSERT, UPDATE, ddl statements and other non value returning statements.
`DatabaseObject.RowSet` | `executeRetrieval(<String> sqlString)` Used to implement SELECT and other value returning statements.
`Object` | `getLastError()` Return the last error which occured when connecting or executing a statement, undefined if none.
`void` | `getMetaData()` Return the meta data attached to the connection.

Method Detail

### executeCommand

    Number executeCommand(<String> sqlString)

Used to implement INSERT, UPDATE, ddl statements and other non value returning statements.
Returns the number of rows impacted if the request is successful. Returns false otherwise. If false was returned, getLastError may be called on the database object to get the error information. Note that an error is generated (rather than returning a status) if the connection was not successful.

Parameters:

`sqlString` - as String

Returns:

Number of rows impacted if successful or false if error.

### executeRetrieval

    DatabaseObject.RowSet executeRetrieval(<String> sqlString)

Used to implement SELECT and other value returning statements.
Return a RowSet object implementing the RowsetAccess protocol if the request is successful. Returns false otherwise. Additional arguments are ignored, and data is always returned as a RowsetAccess. The cursor is positioned before the fist row. If false was returned, getLastError may be called on the database object to get the error information. Note that an error is generated (rather than returning a status) if the connection was not successful.

Parameters:

`sqlString` - as String

Returns:

DatabaseObject.RowSet with the resulting rowset, or false in case of error

### getLastError

    Object getLastError()

Return the last error which occured when connecting or executing a statement, undefined if none.

Returns:

undefined if none

### getMetaData

    void getMetaData()

Return the meta data attached to the connection.

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

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