Gda.Batch

g GObject.Object GObject.Object Gda.Batch Gda.Batch GObject.Object->Gda.Batch

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new ()

add_statement (stmt)

copy ()

get_parameters ()

get_statements ()

remove_statement (stmt)

serialize ()

Virtual Methods

Inherited:

GObject.Object (7)

do_changed (changed_stmt)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

changed

Gets emitted whenever a Gda.Statement in the batch object changes

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

object

GObject.Object

r

Class Details

class Gda.Batch(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gda.BatchClass

classmethod error_quark()
Return type:

int

classmethod new()
Returns:

the new object

Return type:

Gda.Batch

Creates a new Gda.Batch object

add_statement(stmt)
Parameters:

stmt (Gda.Statement) – a statement to add to self's statements list

Add stmt to the list of statements managed by self. A Gda.Statement object can be added multiple times to a Gda.Batch object.

copy()
Returns:

a the new copy of self

Return type:

Gda.Batch

Copy constructor

get_parameters()
Raises:

GLib.Error

Returns:

True if no error occurred.

out_params:

a place to store a new Gda.Set object, or None

Return type:

(bool, out_params: Gda.Set)

Get a new Gda.Set object which groups all the execution parameters which self needs for all the statements it includes. This new object is returned though out_params.

Note that if self does not need any parameter, then out_params is set to None.

get_statements()
Returns:

a list of Gda.Statement which should not be modified.

Return type:

[Gda.Statement]

Get a list of the Gda.Statement objects contained in self

remove_statement(stmt)
Parameters:

stmt (Gda.Statement) – a statement to remove from self's statements list

Removes stmt from the list of statements managed by self. If stmt is present several times in self's statements’ list, then only the first one is removed.

serialize()
Returns:

a string containing the serialized version of self

Return type:

str

Creates a string representing the contents of self.

do_changed(changed_stmt) virtual
Parameters:

changed_stmt (Gda.Statement) –

Signal Details

Gda.Batch.signals.changed(batch, changed_stmt)
Signal Name:

changed

Flags:

RUN_FIRST

Parameters:
  • batch (Gda.Batch) – The object which received the signal

  • changed_stmt (GObject.Object) – the statement which has been changed

Gets emitted whenever a Gda.Statement in the batch object changes