Dee.Transaction

g Dee.Model Dee.Model Dee.SerializableModel Dee.SerializableModel Dee.Model->Dee.SerializableModel Dee.Serializable Dee.Serializable Dee.Serializable->Dee.SerializableModel Dee.Transaction Dee.Transaction Dee.SerializableModel->Dee.Transaction GObject.GInterface GObject.GInterface GObject.GInterface->Dee.Model GObject.GInterface->Dee.Serializable GObject.Object GObject.Object GObject.Object->Dee.SerializableModel

Subclasses:

None

Methods

Inherited:

Dee.SerializableModel (3), GObject.Object (37), Dee.Model (48), Dee.Serializable (4)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new (target)

commit ()

get_target ()

is_committed ()

Virtual Methods

Inherited:

GObject.Object (7), Dee.Model (50), Dee.Serializable (1)

Properties

Name

Type

Flags

Short Description

target

Dee.Model

r/w/co

Target model

Signals

Inherited:

GObject.Object (1), Dee.Model (5)

Fields

Inherited:

GObject.Object (1), Dee.Model (5)

Name

Type

Access

Description

parent

Dee.SerializableModel

r

priv

Dee.TransactionPrivate

r

Class Details

class Dee.Transaction(**kwargs)
Bases:

Dee.SerializableModel

Abstract:

No

Structure:

Dee.TransactionClass

All fields in the Dee.Transaction structure are private and should never be accessed directly

classmethod error_quark()
Return type:

int

classmethod new(target)
Parameters:

target (Dee.Model) – The Dee.Model the transaction applies against

Returns:

A newly allocated Dee.Transaction. Free with GObject.Object.unref() when done using it - no matter if you call Dee.Transaction.commit() or not.

Return type:

Dee.Transaction

commit()
Raises:

GLib.Error

Returns:

True if and only if the transaction successfully applies to :target.

Return type:

bool

Apply a transaction to its target model. After this call the transaction is invalidated and must be freed with GObject.Object.unref().

get_target()
Returns:

The target model

Return type:

Dee.Model

Get the target model of a transaction. This is just a convenience method for accessing the :target property.

is_committed()
Returns:

True if and only if Dee.Transaction.commit() has completed successfully on the transaction.

Return type:

bool

Check if a Dee.Transaction has been committed. This method is mainly for debugging and testing purposes.

Property Details

Dee.Transaction.props.target
Name:

target

Type:

Dee.Model

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Target model