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.
Methods
|
|
|
|
__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( '' ),
)
|
|
commit_sub
|
commit_sub (
self,
t,
_type=type,
_st=type( '' ),
_None=None,
)
|
|
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 ),
)
|
|
setstate
|
setstate ( self, object )
|
|
sync
|
sync ( self )
|
|
tpc_abort
|
tpc_abort ( self, transaction )
|
|
tpc_begin
|
tpc_begin (
self,
transaction,
sub=None,
)
|
|
tpc_finish
|
tpc_finish ( self, transaction )
|
|
tpc_finish_
|
tpc_finish_ ( self )
|
|
tpc_vote
|
tpc_vote (
self,
transaction,
_type=type,
_st=type( '' ),
)
|
|