WebObjects 5.2

com.webobjects.eoaccess
Class EOAccessArrayFaultHandler

java.lang.Object
  |
  +--com.webobjects.eocontrol.EOFaultHandler
        |
        +--com.webobjects.eoaccess.EOAccessGenericFaultHandler
              |
              +--com.webobjects.eoaccess.EOAccessArrayFaultHandler

public class EOAccessArrayFaultHandler
extends EOAccessGenericFaultHandler

EOAccessArrayFaultHandler is a subclass of EOAccessGenericFaultHandler that implements a fault handler for an array of Enterprise Objects. It also is used when handling faults for to-many relationships.

See Also:
EOAccessGenericFaultHandler

Constructor Summary
EOAccessArrayFaultHandler(EOKeyGlobalID sourceGlobalID, String relationshipName, EODatabaseContext dbcontext, EOEditingContext ec)
          Creates and returns a fault handler initialized with all of the information necessary to fetch the appropriate objects when the fault is fired.
 
Method Summary
 void completeInitializationOfObject(Object eo)
          Asks the database context to fetch an array of objects, if they are not already in memory.
 String relationshipName()
          Returns the name of the to-many relationship.
 EOKeyGlobalID sourceGlobalID()
          Returns the EOKeyGlobalID representing the source entity in a to-many relationship.
 String toString()
          Returns a string representation of this fault handler.
 
Methods inherited from class com.webobjects.eoaccess.EOAccessGenericFaultHandler
databaseContext, editingContext, faultWillFire, generation, linkAfterHandler, next, previous, processQueue, setContext
 
Methods inherited from class com.webobjects.eocontrol.EOFaultHandler
clearFault, createFaultForDeferredFault, descriptionForObject, eoShallowDescription, handlerForFault, isFault, makeObjectIntoFault, targetClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EOAccessArrayFaultHandler

public EOAccessArrayFaultHandler(EOKeyGlobalID sourceGlobalID,
                                 String relationshipName,
                                 EODatabaseContext dbcontext,
                                 EOEditingContext ec)
Creates and returns a fault handler initialized with all of the information necessary to fetch the appropriate objects when the fault is fired. When the fault is fired, the database context asks the editing context for the required objects using the EOObjectStore interface.
Parameters:
sourceGlobalID - The EOKeyGlobalID of the source entity in a to-many relationship.
relationshipName - The name of the to-many relationship.
dbcontext - The database context.
ec - The editing context.
Method Detail

completeInitializationOfObject

public void completeInitializationOfObject(Object eo)
Asks the database context to fetch an array of objects, if they are not already in memory. This method is called when a fault is fired and uses the EOObjectStore interface to get the information from the editing context.
Overrides:
completeInitializationOfObject in class EOAccessGenericFaultHandler
Parameters:
eo - An array of objects that is currently represented as a fault.

relationshipName

public String relationshipName()
Returns the name of the to-many relationship.
Returns:
The name of the to-many relationship.

sourceGlobalID

public EOKeyGlobalID sourceGlobalID()
Returns the EOKeyGlobalID representing the source entity in a to-many relationship.
Returns:
The EOKeyGlobalID of the source entity in a to-many relationship.

toString

public String toString()
Returns a string representation of this fault handler.
Overrides:
toString in class EOFaultHandler
Returns:
A string representation of this fault handler.

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.