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
  _handleECDeletion(self, ref)
Automatically called when the EditingContext the FaultHandler (weak-) references is deleted ; simply removes itself from the chain of handlers.
  _removeSelfFromChain(self)
Removes itself from the chain.
  _setContext(self, aDatabaseContext, anEditingContext)
Initializes the AccessGenericFaultHandler ; subclasses typically call this method in their '__init__()' method.
    Inherited from FaultHandler
  targetClass(self)

Class Variable Summary
    Inherited from AccessGenericFaultHandler
NoneType _dbContext = None                                                                  
int _generation = 0                                                                     
NoneType _next = None                                                                  
NoneType _previous = None                                                                  
NoneType _weakref_ec = None                                                                  

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