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
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.
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.
Copyright © 2003 Apple Computer, Inc.