Dee.Transaction¶
- Subclasses:
None
Methods¶
- Inherited:
Dee.SerializableModel (3), GObject.Object (37), Dee.Model (48), Dee.Serializable (4)
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Target model |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class Dee.Transaction(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All fields in the
Dee.Transaction
structure are private and should never be accessed directly- classmethod new(target)¶
- Parameters:
target (
Dee.Model
) – TheDee.Model
the transaction applies against- Returns:
A newly allocated
Dee.Transaction
. Free withGObject.Object.unref
() when done using it - no matter if you callDee.Transaction.commit
() or not.- Return type:
- commit()¶
-
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:
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 ifDee.Transaction.commit
() has completed successfully on the transaction.- Return type:
Check if a
Dee.Transaction
has been committed. This method is mainly for debugging and testing purposes.