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.Transactionstructure are private and should never be accessed directly- classmethod new(target)¶
 - Parameters:
 target (
Dee.Model) – TheDee.Modelthe 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
:targetproperty.
- is_committed()¶
 - Returns:
 Trueif and only ifDee.Transaction.commit() has completed successfully on the transaction.- Return type:
 
Check if a
Dee.Transactionhas been committed. This method is mainly for debugging and testing purposes.