WebObjects 5.2

com.webobjects.eoaccess
Interface EOAdaptor.Delegate

Enclosing class:
EOAdaptor

public static interface EOAdaptor.Delegate

This interface defines a delegate to EOAdaptor to handle specific requests that are normally handled by EOAdaptor (or rather its subclass since EOAdaptor is an abstract class). The delegate can use these requests to preempt the operations, modify results, or simply track activity.


Method Summary
 Object adaptorFetchedValueForValue(EOAdaptor adaptor, Object value, EOAttribute attribute)
          Allows the delegate to handle attribute processing when saving EOEnterpriseObjects to the database.
 NSDictionary reconnectionDictionaryForAdaptor(EOAdaptor adaptor)
          Creates a new connection dictionary for the adaptor.
 

Method Detail

adaptorFetchedValueForValue

public Object adaptorFetchedValueForValue(EOAdaptor adaptor,
                                          Object value,
                                          EOAttribute attribute)
Allows the delegate to handle attribute processing when saving EOEnterpriseObjects to the database. When this method is implemented, it must return the processed value.
Parameters:
adaptor - The EOAdaptor object owning this delegate.
value - The value object to be inserted or updated in the database.
attribute - The EOAttribute that corresponds to the value object.
Returns:
The eventual value that is processed by this delegate. Returning null as the new value is OK.
See Also:
EOAdaptor.fetchedValueForValue(Object value, EOAttribute attribute), EOAttribute

reconnectionDictionaryForAdaptor

public NSDictionary reconnectionDictionaryForAdaptor(EOAdaptor adaptor)
Creates a new connection dictionary for the adaptor. It is responsible for guaranteeing that the new connection dictionary is compatible with any EODatabase that is currently using the adaptor. Note that if reconnection succeeds, the EODatabase will continue to use its database snapshots as if nothing had happened so the new database server should have the same data as the original.
Parameters:
adaptor - The EOAdaptor object owning this delegate.
Returns:
The new connection dictionary.
See Also:
EOAdaptor.handleDroppedConnection()

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

Copyright © 2003 Apple Computer, Inc.