Dmap.ContainerDb

g Dmap.ContainerDb Dmap.ContainerDb GObject.GInterface GObject.GInterface GObject.GInterface->Dmap.ContainerDb

Implementations:

None

Methods

add (record)

count ()

foreach (func, *data)

lookup_by_id (id)

Virtual Methods

do_add (record)

do_count ()

do_foreach (func, data)

do_lookup_by_id (id)

Properties

None

Signals

None

Fields

None

Class Details

class Dmap.ContainerDb
Bases:

GObject.GInterface

Structure:

Dmap.ContainerDbInterface

add(record)
Parameters:

record (Dmap.ContainerRecord) – A record.

Raises:

GLib.Error

Add a record to the database.

count()
Returns:

the number of records in the database.

Return type:

int

foreach(func, *data)
Parameters:

Apply a function to each record in a container database.

lookup_by_id(id)
Parameters:

id (int) – A record ID.

Returns:

the database record corresponding to id. This record should be unrefed when no longer required.

Return type:

Dmap.ContainerRecord

do_add(record) virtual
Parameters:

record (Dmap.ContainerRecord) – A record.

Add a record to the database.

do_count() virtual
Return type:

int

do_foreach(func, data) virtual
Parameters:

Apply a function to each record in a container database.

do_lookup_by_id(id) virtual
Parameters:

id (int) – A record ID.

Returns:

the database record corresponding to id. This record should be unrefed when no longer required.

Return type:

Dmap.ContainerRecord