Table of Contents

Class: IPersistentDataManager ./src/peak/persistence/interfaces.py

Provide services for managing persistent state.

This interface is used by a persistent object to interact with its data manager in the context of a transaction.

Base Classes   
Interface
Methods   
mtime
register
setstate
  mtime 
mtime ( object )

Return the modification time of the object.

The modification time may not be known, in which case None is returned.

  register 
register ( object )

Register a IPersistent with the current transaction.

This method provides some insulation of the persistent object from details of transaction management. For example, it allows the use of per-database-connection rather than per-thread transaction managers.

A persistent object should not register with its data manager more than once during a single transaction. XXX should is too wishy-washy; we should probably guarantee that this is true, and it might be.

  setstate 
setstate ( object )

Load the state for the given object.

The object should be in the deactivated (ghost) state. The object's state will be set and the object will end up in the up-to-date state.

The object must implement the IPersistent interface.


Table of Contents

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