class documentation
class TwoPhaseTransaction(RootTransaction): (source)
Represent a two-phase transaction. A new :class:`.TwoPhaseTransaction` object may be procured using the :meth:`_engine.Connection.begin_twophase` method. The interface is the same as that of :class:`.Transaction` with the addition of the :meth:`prepare` method.
Method | __init__ |
Undocumented |
Method | prepare |
Prepare this :class:`.TwoPhaseTransaction`. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | xid |
Undocumented |
Method | _connection |
Undocumented |
Method | _connection |
Undocumented |
Method | _connection |
Undocumented |
Instance Variable | _is |
Undocumented |
Inherited from RootTransaction
:
Instance Variable | connection |
Undocumented |
Instance Variable | is |
Undocumented |
Method | _close |
Undocumented |
Method | _deactivate |
Undocumented |
Method | _do |
Undocumented |
Method | _do |
Undocumented |
Method | _do |
Undocumented |
Class Variable | _is |
Undocumented |
Property | _deactivated |
True if this transaction is totally deactivated from the connection and therefore can no longer affect its state. |
Inherited from Transaction
(via RootTransaction
):
Method | close |
Close this :class:`.Transaction`. |
Method | commit |
Commit this :class:`.Transaction`. |
Method | rollback |
Roll back this :class:`.Transaction`. |
Property | is |
Undocumented |
Method | _get |
Undocumented |
Method | _rollback |
indicates the object is in a state that is known to be acceptable for rollback() to be called. |
Method | _transaction |
Undocumented |
Method | _transaction |
Undocumented |
Inherited from TransactionalContext
(via RootTransaction
, Transaction
):
Method | __enter__ |
Undocumented |
Method | __exit__ |
Undocumented |
Class Method | _trans |
Undocumented |
Instance Variable | _outer |
Undocumented |
Instance Variable | _trans |
Undocumented |