c.d.s.ZopelessTransactionManager(object) : class documentation

Part of canonical.database.sqlbase View In Hierarchy

Compatibility shim for initZopeless()
Method __init__ Undocumented
Class Method initZopeless Undocumented
Class Method uninstall Uninstall the ZopelessTransactionManager.
Class Method set_isolation_level Set the transaction isolation level.
Static Method conn Undocumented
Static Method begin Begin a transaction.
Static Method commit Commit the current transaction.
Static Method abort Abort the current transaction.
Static Method registerSynch Register an ISynchronizer.
Static Method unregisterSynch Unregister an ISynchronizer.
Class Method _get_zopeless_connection_config Undocumented
Static Method _reset_stores Reset the active stores.
def __init__(self):
Undocumented
@classmethod
def _get_zopeless_connection_config(self, dbname, dbhost):
Undocumented
@classmethod
def initZopeless(cls, dbname=None, dbhost=None, dbuser=None, isolation=ISOLATION_LEVEL_DEFAULT):
Undocumented
@staticmethod
def _reset_stores():
Reset the active stores.

This is required for connection setting changes to be made visible.

@classmethod
def uninstall(cls):
Uninstall the ZopelessTransactionManager.

This entails removing the config overlay and resetting the store.

@classmethod
def set_isolation_level(cls, isolation):
Set the transaction isolation level.

Level can be one of ISOLATION_LEVEL_AUTOCOMMIT, ISOLATION_LEVEL_READ_COMMITTED or ISOLATION_LEVEL_SERIALIZABLE. As changing the isolation level must be done before any other queries are issued in the current transaction, this method automatically issues a rollback to ensure this is the case.

@staticmethod
def conn():
Undocumented
@staticmethod
def begin():
Begin a transaction.
@staticmethod
def commit():
Commit the current transaction.
@staticmethod
def abort():
Abort the current transaction.
@staticmethod
def registerSynch(synch):
Register an ISynchronizer.
@staticmethod
def unregisterSynch(synch):
Unregister an ISynchronizer.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.