Table of Contents

Class: ManagedConnection ./src/peak/storage/connections.py
Base Classes   
TransactionComponent
Methods   
__call__
_close
_open
abortTransaction
assertUntransacted
close
closeASAP
closeCursors
finishTransaction
getObjectInstance
joinTxn
registerCursor
txnTime
voteForCommit
  __call__ 
__call__ (
        self,
        *args,
        *kw,
        )

  _close 
_close ( self )

Actions to take before del self.connection, if needed.

  _open 
_open ( self )

Return new "real" connection to be saved as self.connection

Exceptions   
NotImplementedError
  abortTransaction 
abortTransaction ( self,  txnService )

  assertUntransacted 
assertUntransacted ( self )

Exceptions   
exceptions.TransactionInProgress( """Connection has already joined transaction""" )
  close 
close ( self )

Close the connection immediately

  closeASAP 
closeASAP ( self )

Close the connection as soon as it's not in a transaction

  closeCursors 
closeCursors ( self )

  finishTransaction 
finishTransaction (
        self,
        txnService,
        committed,
        )

  getObjectInstance 
getObjectInstance (
        klass,
        context,
        refInfo,
        name,
        attrs=None,
        )

  joinTxn 
joinTxn ( self )

Join the current transaction, if not already joined

  registerCursor 
registerCursor ( self,  cursor )

  txnTime 
txnTime ( self )

Per-transaction timestamp, based on this connection's clock

Note that this default should be overridden for subclasses that interact with a database that has a clock! An SQL connection, for example, should perform a query against the database to get the DB server's idea of the time. Connections which have no notion of time should just return the transaction's timestamp, and so this default implementation will do. Note that if you override this implementation, you must ensure that the connection has joined the transaction first!

  voteForCommit 
voteForCommit ( self,  txnService )


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:05 2024 by HappyDoc version 2.1