|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.eocontrol.EOFaultHandler com.webobjects.eoaccess.EOAccessGenericFaultHandler
EOAccessGenericFaultHandler is an abstract class that helps an
EOAccessFault to fire by fetching data using an EODatabaseContext. You
shouldn't use EOAccessGenericFaultHandler directly; instead, use its
subclasses, EOAccessFaultHandler and EOAccessArrayFaultHandler.
EOAccessGenericFaultHandler lets you chain together all the fault
handlers in the access layer, so that the batch faulting mechanism can
find other faults related to the one that triggered the batch. Use
linkAfterHandler
to link one fault after another. Use
next
and previous
to traverse the chain.
linkAfterHandler(EOAccessGenericFaultHandler faultHandler,
int generation)
,
next()
,
previous()
,
EOAccessFaultHandler
,
EOAccessArrayFaultHandler
Constructor Summary | |
EOAccessGenericFaultHandler()
Default constructor. |
Method Summary | |
abstract void |
completeInitializationOfObject(Object eo)
An abstract method that should be implemented by subclasses to fetch the rest of the object eo from the database
when the fault fires. |
EODatabaseContext |
databaseContext()
Returns the current database context associated with this fault handler. |
EOEditingContext |
editingContext()
Returns the current EOEditingContext associated with this fault handler. |
void |
faultWillFire(Object object)
Removes object from the chain of fault handlers. |
int |
generation()
Returns the number that represents when the fault handler was built. |
void |
linkAfterHandler(EOAccessGenericFaultHandler faultHandler,
int generation)
Adds this handler to a chain of fault handlers. |
EOAccessGenericFaultHandler |
next()
Returns the next fault handler in the chain. |
EOAccessGenericFaultHandler |
previous()
Returns the previous fault handler in the chain. |
static void |
processQueue(ReferenceQueue refQueue)
Removes fault handlers that are not associated with any editing context from the chain of fault handlers. |
protected void |
setContext(EODatabaseContext dbcontext,
EOEditingContext ec)
|
Methods inherited from class com.webobjects.eocontrol.EOFaultHandler |
clearFault, createFaultForDeferredFault, descriptionForObject, eoShallowDescription, handlerForFault, isFault, makeObjectIntoFault, targetClass, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EOAccessGenericFaultHandler()
Method Detail |
public abstract void completeInitializationOfObject(Object eo)
eo
from the database
when the fault fires. This can be perceived as the completion of
the initialization of an object in memory.
completeInitializationOfObject
in class EOFaultHandler
eo
- The object that is currently represented as a fault;
this is usually an EOEnterpriseObject.EOEnterpriseObject
public EODatabaseContext databaseContext()
EODatabaseContext
public EOEditingContext editingContext()
EOEditingContext
public void faultWillFire(Object object)
object
from the chain of fault handlers.
faultWillFire
in class EOFaultHandler
object
- The EOFaulting object related to this handler.EOFaulting
public int generation()
public void linkAfterHandler(EOAccessGenericFaultHandler faultHandler, int generation)
faultHandler
- The fault handler after which to place the
receiver in the chain.generation
- A number that represents when the receiver
was built.next()
,
previous()
public EOAccessGenericFaultHandler next()
linkAfterHandler(EOAccessGenericFaultHandler
faultHandler, int gen)
public EOAccessGenericFaultHandler previous()
linkAfterHandler(EOAccessGenericFaultHandler faultHandler, int gen)
public static void processQueue(ReferenceQueue refQueue)
refQueue
- The ReferenceQueue associated with the
WeakReferences of this handler.protected void setContext(EODatabaseContext dbcontext, EOEditingContext ec)
|
Last updated Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |