new (require("baja/coll/TableCursor"))()
- Description:
Cursor for a
Table.
- Source:
- See:
Extends:
Extends
Methods
after(func)
- Description:
When the cursor is iterated, the before function will be called
just after iteration has finished.When the function is called,
thisrefers to the Cursor. The Cursor is also
passed in as a argument to this function.
- Source:
- Inherited From:
Parameters:
| Name | Type | Description |
|---|---|---|
func |
function | the after function. |
before(func)
- Description:
When the cursor is iterated, the before function will be called
just before iteration starts.When the function is called,
thisrefers to the Cursor. The Cursor is also
passed in as a argument to this function.
- Source:
- Inherited From:
Parameters:
| Name | Type | Description |
|---|---|---|
func |
function | the before function. |
each(func)
- Description:
Iterate through the Cursor and call a function for every item.
When the function is called,
thisrefers to the Cursor.
- Source:
- Inherited From:
Parameters:
| Name | Type | Description |
|---|---|---|
func |
function | function called on every iteration with |
get(columnopt)
- Description:
Return the current row or row item.
If column information is passed into this method then the value for a particular
column and row will be returned.
- Source:
- Overrides:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
column |
String | module:baja/coll/Table.TableColumn |
<optional> |
the column |
Returns:
the cursor value (null if none available).
getDisplay(columnopt) → {String}
- Description:
Return the current item display string.
If column information is passed into this method then the display String for a particular
column and row will be returned.
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
column |
String | module:baja/coll/Table.TableColumn |
<optional> |
the column |
Returns:
the cursor display string (null if none available).
- Type
- String
getSource() → {baja.coll.QueryResult}
- Description:
Return the underlying Cursor's data source.
- Source:
- Inherited From: