Dee.ResultSet

g Dee.ResultSet Dee.ResultSet GObject.GInterface GObject.GInterface GObject.GInterface->Dee.ResultSet

Implementations:

Dee.GListResultSet

Methods

get_model ()

get_n_rows ()

has_next ()

next ()

peek ()

seek (pos)

tell ()

Virtual Methods

do_get_model ()

do_get_n_rows ()

do_has_next ()

do_next ()

do_peek ()

do_seek (pos)

do_tell ()

Properties

None

Signals

None

Fields

None

Class Details

class Dee.ResultSet
Bases:

GObject.GInterface

Structure:

Dee.ResultSetIface

get_model()
Returns:

The model that the rows point into

Return type:

Dee.Model

Get the model associated with a result set

get_n_rows()
Returns:

The number of rows held in the result set

Return type:

int

Get the number of Dee.ModelIter s held in a Dee.ResultSet.

has_next()
Returns:

True if and only if more rows can be retrieved by calling Dee.ResultSet.next()

Return type:

bool

Check if a call to Dee.ResultSet.next() will succeed.

next()
Returns:

The Dee.ModelIter at the current cursor position

Return type:

Dee.ModelIter

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:

Dee.ModelIter

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() or Dee.ResultSet.next() will read the row at position pos.

tell()
Returns:

The current position of the cursor

Return type:

int

Get the current position of the cursor.

do_get_model() virtual
Returns:

The model that the rows point into

Return type:

Dee.Model

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:

int

Get the number of Dee.ModelIter s held in a Dee.ResultSet.

do_has_next() virtual
Returns:

True if and only if more rows can be retrieved by calling Dee.ResultSet.next()

Return type:

bool

Check if a call to Dee.ResultSet.next() will succeed.

do_next() virtual
Returns:

The Dee.ModelIter at the current cursor position

Return type:

Dee.ModelIter

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:

Dee.ModelIter

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() or Dee.ResultSet.next() will read the row at position pos.

do_tell() virtual
Returns:

The current position of the cursor

Return type:

int

Get the current position of the cursor.