Gda.RepetitiveStatement

g GObject.Object GObject.Object Gda.RepetitiveStatement Gda.RepetitiveStatement GObject.Object->Gda.RepetitiveStatement

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (stmt)
  append_set (values, make_copy)
  get_all_sets ()
  get_template_set (set)

Virtual Methods

Inherited:GObject.Object (7)

Properties

Name Type Flags Short Description
statement Gda.Statement r/w/co Statement to Execute

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance GObject.Object r  

Class Details

class Gda.RepetitiveStatement(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:Gda.RepetitiveStatementClass
classmethod new(stmt)
Parameters:stmt (Gda.Statement) – a Gda.Statement object
Returns:a new Gda.RepetitiveStatement object
Return type:Gda.RepetitiveStatement

Creates a new Gda.RepetitiveStatement object which, when executed, will execute stmt once for all the values set which will have been defined using Gda.RepetitiveStatement.append_set(). Use Gda.Connection.repetitive_statement_execute() to actually execute it.

New in version 4.2.

append_set(values, make_copy)
Parameters:
  • values (Gda.Set) – a Gda.Set object with the values to be used
  • make_copy (bool) – True if values is copied, and False if values is only ref’ed
Returns:

a new Gda.RepetitiveStatement object

Return type:

bool

Specifies that self be executed one time with the values contained in values.

A new Gda.Set to be used as the values argument can be obtained using Gda.RepetitiveStatement.get_template_set().

New in version 4.2.

get_all_sets()
Returns:a new GLib.SList of Gda.Set objects (free with g_slist_free()).
Return type:[Gda.Set]

Get all the values sets which will have been added using Gda.RepetitiveStatement.append_set().

New in version 4.2.

get_template_set(set)
Parameters:set (Gda.Set) – a place to store the returned template set
Raises:GLib.Error
Returns:True on success, False on error
Return type:bool

Gets a new Gda.Set object with the parameters used by the template statement in the self object.

Use this object with Gda.RepetitiveStatement.append_set().

New in version 4.2.

Property Details

Gda.RepetitiveStatement.props.statement
Name:statement
Type:Gda.Statement
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

Statement to Execute