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

Class AccessFaultHandler

         FaultHandler --+    
                        |    
AccessGenericFaultHandler --+
                            |
                           AccessFaultHandler


Handles to-one relationships
Method Summary
  __init__(self, keyGlobalID, aDatabaseContext, anEditingContext)
Initializes the 'AccessFaultHandler' with the objects it needs to get the data back from the Database.
  completeInitializationOfObject(self, anObject)
Abstract method implemented by subclasses to populate 'anObject'
  globalID(self)
Returns the 'KeyGlobalID' of the object this FaultHandler is responsible for.
    Inherited from AccessGenericFaultHandler
  databaseContext(self)
Returns the 'DatabaseContext' object the fault handler uses to fetch data rows from a database.
  editingContext(self)
Returns the underlying EditingContext --see _setContext().
  faultWillFire(self, anObject)
Removes itself from the chain of handlers
  generation(self)
Return the ``generation'' of the fault --see: 'linkAfterHandler()'.
  linkAfterHandler(self, anAccessGenericFaultHandler, generation)
Adds the FaultHandler to the chain ended by 'anAccessGenericFaultHandler'.
  next(self)
Returns the successor of 'self' in the chain, or None.
  previous(self)
Returns the predecessor of 'self' in the chain, or None
    Inherited from FaultHandler
  targetClass(self)

Method Details

__init__(self, keyGlobalID, aDatabaseContext, anEditingContext)
(Constructor)

Initializes the 'AccessFaultHandler' with the objects it needs to get the data back from the Database.

Parameters:

keyGlobalID -- the KeyGlobalID for the faulted object

aDatabaseContext -- the 'DatabaseContext' object responsible for fetching
the data for the object identified by 'keyGlobalID'
anEditingContext -- the 'EditingContext' object managing the graph of
objects in which the object identified by 'keyGlobalID' participates.

completeInitializationOfObject(self, anObject)

Abstract method implemented by subclasses to populate 'anObject'

Parameter:

anObject -- an object implementing the 'Faulting' interface. Within the
framework, it is typically a 'DatabaseObject'
Overrides:
Modeling.FaultHandler.AccessGenericFaultHandler.completeInitializationOfObject (inherited documentation)

globalID(self)

Returns the 'KeyGlobalID' of the object this FaultHandler is responsible for.

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