Table of Contents

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

Base Classes   
BaseStorage.BaseStorage
Methods   
__init__
__len__
_abort
_begin
_clear_index
_clear_temp
_finish
_initIndex
_load
_loada
_newIndexes
_redundant_pack
_restore_index
_sane
_save_index
abortVersion
close
commitVersion
getSize
history
load
loadSerial
modifiedInVersion
pack
store
supportsUndo
supportsVersions
tpc_vote
undo
undoLog
  __init__ 
__init__ (
        self,
        file_name,
        create=0,
        read_only=0,
        stop=None,
        quota=None,
        )

Exceptions   
ValueError
  __len__ 
__len__ ( self )

  _abort 
_abort ( self )

  _begin 
_begin (
        self,
        tid,
        u,
        d,
        e,
        )

  _clear_index 
_clear_index ( self )

  _clear_temp 
_clear_temp ( self )

  _finish 
_finish (
        self,
        tid,
        u,
        d,
        e,
        )

  _initIndex 
_initIndex (
        self,
        index,
        vindex,
        tindex,
        tvindex,
        )

  _load 
_load (
        self,
        oid,
        version,
        _index,
        file,
        )

Exceptions   
CorruptedDataError
  _loada 
_loada (
        self,
        oid,
        _index,
        file,
        )

Read any version and return the version

  _newIndexes 
_newIndexes ( self )

  _redundant_pack 
_redundant_pack (
        self,
        file,
        pos,
        )

  _restore_index 
_restore_index ( self )

Load the database index from a file to support quick startup

  _sane 
_sane (
        self,
        index,
        pos,
        )

Sanity check saved index data by reading the last undone trans

Basically, we read the last not undone transaction and check to see that the included records are consistent with the index. Any invalid record records or inconsistent object positions cause zero to be returned.

  _save_index 
_save_index ( self )

Write the database index to a file to support quick startup

  abortVersion 
abortVersion (
        self,
        src,
        transaction,
        )

  close 
close ( self )

  commitVersion 
commitVersion (
        self,
        src,
        dest,
        transaction,
        abort=None,
        )

Exceptions   
'VersionCommitError'
POSException.StorageTransactionError( self, transaction )
  getSize 
getSize ( self )

  history 
history (
        self,
        oid,
        version=None,
        length=1,
        filter=None,
        )

  load 
load (
        self,
        oid,
        version,
        _stuff=None,
        )

  loadSerial 
loadSerial (
        self,
        oid,
        serial,
        )

Exceptions   
CorruptedDataError
KeyError
  modifiedInVersion 
modifiedInVersion ( self,  oid )

Exceptions   
CorruptedDataError
  pack 
pack (
        self,
        t,
        referencesf,
        )

Copy data from the current database file to a packed file

Non-current records from transactions with time-stamp strings less than packtss are ommitted. As are all undone records.

Also, data back pointers that point before packtss are resolved and the associated data are copied, since the old records are not copied.

Exceptions   
'Pack Error'
()
FileStorageError
  store 
store (
        self,
        oid,
        serial,
        data,
        version,
        transaction,
        )

Exceptions   
CorruptedDataError
FileStorageQuotaError
POSException.ConflictError
POSException.StorageTransactionError( self, transaction )
POSException.VersionLockError
  supportsUndo 
supportsUndo ( self )

  supportsVersions 
supportsVersions ( self )

  tpc_vote 
tpc_vote ( self,  transaction )

Exceptions   
()
FileStorageError
POSException.StorageTransactionError( self, transaction )
  undo 
undo ( self,  transaction_id )

Exceptions   
POSException.UndoError
  undoLog 
undoLog (
        self,
        first,
        last,
        filter=None,
        )

Exceptions   
POSException.UndoError
  versionEmpty 
versionEmpty ( self,  version )

  versions 
versions ( self,  max=None )


Table of Contents

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