Dee.ResultSet¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Dee.ResultSet¶
- Bases:
- Structure:
- get_model()¶
- Returns:
The model that the rows point into
- Return type:
Get the model associated with a result set
- get_n_rows()¶
- Returns:
The number of rows held in the result set
- Return type:
Get the number of
Dee.ModelIter
s held in aDee.ResultSet
.
- has_next()¶
- Returns:
True
if and only if more rows can be retrieved by callingDee.ResultSet.next
()- Return type:
Check if a call to
Dee.ResultSet.next
() will succeed.
- next()¶
- Returns:
The
Dee.ModelIter
at the current cursor position- Return type:
Get the current row from the result set and advance the cursor. To ensure that calls to this method will succeed you can call
Dee.ResultSet.has_next
().To retrieve the current row without advancing the cursor call
Dee.ResultSet.peek
() in stead of this method.
- peek()¶
- Returns:
The
Dee.ModelIter
at the current cursor position- Return type:
Get the row at the current cursor position.
To retrieve the current row and advance the cursor position call
Dee.ResultSet.next
() in stead of this method.
- seek(pos)¶
- Parameters:
pos (
int
) – The position to seek to
Set the cursor position. Following calls to
Dee.ResultSet.peek
() orDee.ResultSet.next
() will read the row at position pos.
- tell()¶
- Returns:
The current position of the cursor
- Return type:
Get the current position of the cursor.
- do_get_model() virtual¶
- Returns:
The model that the rows point into
- Return type:
Get the model associated with a result set
- do_get_n_rows() virtual¶
- Returns:
The number of rows held in the result set
- Return type:
Get the number of
Dee.ModelIter
s held in aDee.ResultSet
.
- do_has_next() virtual¶
- Returns:
True
if and only if more rows can be retrieved by callingDee.ResultSet.next
()- Return type:
Check if a call to
Dee.ResultSet.next
() will succeed.
- do_next() virtual¶
- Returns:
The
Dee.ModelIter
at the current cursor position- Return type:
Get the current row from the result set and advance the cursor. To ensure that calls to this method will succeed you can call
Dee.ResultSet.has_next
().To retrieve the current row without advancing the cursor call
Dee.ResultSet.peek
() in stead of this method.
- do_peek() virtual¶
- Returns:
The
Dee.ModelIter
at the current cursor position- Return type:
Get the row at the current cursor position.
To retrieve the current row and advance the cursor position call
Dee.ResultSet.next
() in stead of this method.
- do_seek(pos) virtual¶
- Parameters:
pos (
int
) – The position to seek to
Set the cursor position. Following calls to
Dee.ResultSet.peek
() orDee.ResultSet.next
() will read the row at position pos.