Table of Contents

Class: Connection Zope-2.2.1-src/lib/python/ZODB/Connection.py

Object managers for individual object space.

An object space is a version of collection of objects. In a multi-threaded application, each thread get's it's own object space.

The Connection manages movement of objects in and out of object storage.

Base Classes   
ExportImport.ExportImport
Methods   
__getitem__
__init__
_breakcr
_persistent_load
_setDB
abort
abort_sub
cacheFullSweep
cacheMinimize
close
commit
commit_sub
db
exchange
getDebugInfo
getVersion
invalidate
modifiedInVersion
oldstate
onCloseCallback
root
setDebugInfo
setklassstate
setstate
sync
tpc_abort
tpc_begin
tpc_finish
tpc_finish_
tpc_vote
  __getitem__ 
__getitem__ (
        self,
        oid,
        tt=type(() ),
        ct=type( HelperClass ),
        )

Exceptions   
"Could not load oid %s, pickled data in traceback info may\ contain clues"
  __init__ 
__init__ (
        self,
        version='',
        cache_size=400,
        cache_deactivate_after=60,
        )

Create a new Connection

  _breakcr 
_breakcr ( self )

  _persistent_load 
_persistent_load (
        self,
        oid,
        d={'__builtins__' : {} },
        tt=type(() ),
        st=type( '' ),
        ct=type( HelperClass ),
        )

  _setDB 
_setDB ( self,  odb )

Begin a new transaction.

Any objects modified since the last transaction are invalidated.

  abort 
abort (
        self,
        object,
        transaction,
        )

Abort the object in the transaction.

This just deactivates the thing.

  abort_sub 
abort_sub ( self,  t )

  cacheFullSweep 
cacheFullSweep ( self,  dt=0 )

  cacheMinimize 
cacheMinimize ( self,  dt=0 )

  close 
close ( self )

  commit 
commit (
        self,
        object,
        transaction,
        _type=type,
        _st=type( '' ),
        )

Exceptions   
()
ConflictError
s
  commit_sub 
commit_sub (
        self,
        t,
        _type=type,
        _st=type( '' ),
        _None=None,
        )

Exceptions   
s
  db 
db ( self )

  exchange 
exchange (
        self,
        old,
        new,
        )

Just plain weird. Don't try this at home kids.

  getDebugInfo 
getDebugInfo ( self )

  getVersion 
getVersion ( self )

  invalidate 
invalidate ( self,  oid )

Invalidate a particular oid

This marks the oid as invalid, but doesn't actually invalidate it. The object data will be actually invalidated at certain transaction boundaries.

  modifiedInVersion 
modifiedInVersion ( self,  oid )

  oldstate 
oldstate (
        self,
        object,
        serial,
        )

  onCloseCallback 
onCloseCallback ( self,  f )

  root 
root ( self )

  setDebugInfo 
setDebugInfo ( self,  *args )

  setklassstate 
setklassstate (
        self,
        object,
        tt=type(() ),
        ct=type( HelperClass ),
        )

Exceptions   
()
  setstate 
setstate ( self,  object )

Exceptions   
()
ConflictError
  sync 
sync ( self )

  tpc_abort 
tpc_abort ( self,  transaction )

  tpc_begin 
tpc_begin (
        self,
        transaction,
        sub=None,
        )

Exceptions   
ConflictError
  tpc_finish 
tpc_finish ( self,  transaction )

  tpc_finish_ 
tpc_finish_ ( self )

  tpc_vote 
tpc_vote (
        self,
        transaction,
        _type=type,
        _st=type( '' ),
        )

Exceptions   
s

Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6