Package Modeling :: Module FaultHandler
[show private | hide private]
[frames | no frames]

Module Modeling.FaultHandler

FaultHandler & subclasses

A FaultHandler is an object that takes care of the full initialization of an object conforming to the Faulting interface.

Module's methods manipulates the Faulting interface an object conforms to.

Classes

The module defined four different classes:

See also: Faulting interface

CVS information

$Id: FaultHandler.py,v 1.17 2004/07/20 06:21:37 sbigaret Exp $

Classes
AccessArrayFaultHandler Handles to-many relationships
AccessFaultHandler Handles to-one relationships
AccessGenericFaultHandler This is an abstract class providing the following capabilities:
FaultHandler A FaultHandler works with any object implementing the Faulting interface ; its purpose is to help any conforming object, postponing their initialization until needed, to get their actual datas from DB.

Function Summary
  __abstract__()
  clearFault(anObject)
Informs the object that it has been fully initialized.
  handlerForFault(anObject)
Returns the fault handler for the object, or None if the object is not a fault.
  isFault(anObject)
Tells whether the object is a fault.
  makeObjectIntoFault(anObject, aFaultHandler)
Makes 'anObject' a fault.

Function Details

clearFault(anObject)

Informs the object that it has been fully initialized.

handlerForFault(anObject)

Returns the fault handler for the object, or None if the object is not a fault.

Simply sends message 'Faulting.faultHandler()' to 'anObject'.

Parameter:

anObject -- an object conforming to the Faulting interface

isFault(anObject)

Tells whether the object is a fault. Simply calls Faulting.isFault() on 'anObject'.

Parameter:

anObject -- an object conforming to the Faulting interface

makeObjectIntoFault(anObject, aFaultHandler)

Makes 'anObject' a fault. Simply calls Faulting.makeObjectIntoFault() on that object.

Parameters:

anObject -- an object conforming to the Faulting interface

aFaultHandler -- the fault handler responsible for finishing initialization of 'anObject'


Generated by Epydoc 2.1 on Sat Mar 4 13:36:25 2006 http://epydoc.sf.net