Type | Name | Description | Notes |
Int | bufferedRowsCount | Contains the number of buffered rows. The default value for this property is 1, which means that each call to fetchNext requests one row from the database API. Setting the value property to N where N > 1 has the effect that the first call to fetchNext will request N rows at once from the database API. The N-1 succeeding calls to fetchNext will simply move a mark into an internal buffer where all N rows are stored. The N+1th call to fetchNext will then request the next N rows, and so on. | |
Int | columnsCount | Contains the number of columns of the result set produced by the last SQL statement submitted (if it produced a result set). Contains 0 otherwise. | read-only |
Int | lastExecuteRowsCount | Contains the number of database rows that were affected by the last non SELECT SQL statement submitted. This is typically useful with SQL UPDATE and SQL DELETE statements. | read-only |
IliSQLSession | sqlSession | Contains the session from which this cursor has been obtained. | read-only |
Boolean | execute(String statement) | Executes the SQL statement returning true if successful. The statement parameter can contain any SQL statement except the SQL SELECT statement. | |
Boolean | fetchNext() | Positions the cursor over the next row in the result set. It returns true if successful. To determine if the result set has been exhausted, you can call the hasTuple method. | |
IliSQLCursorColumn | getColumn(String name) | Returns the column named name in the result set produced by the last SQL statement submitted. Returns null if no such column exists, if there is no current result set, or if there is no current row. Note that since the result set columns become properties of the IliSQLCursor object, they can be directly accessed. For example:
var age = cursor.AGE.value;
| |
IliSQLCursorColumn | getColumnAt(Int index) | Returns the column at position index or null if index is out of bounds. The index parameter must be >= 0 and < columnsCount . | |
IliErrorMessage | getErrorMessage() | Returns the error message caused by the failure of last method call or null if no such failure occurred. | |
Boolean | hasTuple() | Returns true if the cursor is currently positioned on a valid row in the result set. It returns false if the result set has been exhausted. | |
Boolean | isErrorRaised() | Returns true if the last method call has failed. | |
Boolean | select(String statement) | Executes the SQL SELECT statement specified in statement . It returns true if successful. The result set produced by the SQL SELECT statement can then be obtained one row at a time by calling repeatedly the fetchNext member function. Note that the result set will remain available until the next call to one of the execute or select methods. | |