public class ERXDatabaseContextMulticastingDelegate extends ERXMulticastingDelegate
er.extensions.foundation.ERXMulticastingDelegate
that implements
com.webobjects.eoaccess.EODatabaseContext.Delegate
. Use this to aggregate multiple delegate objects
for EODatabaseContext.Delegate
ERXMulticastingDelegate
,
EODatabaseContext.Delegate
Constructor and Description |
---|
ERXDatabaseContextMulticastingDelegate() |
addDelegate, addDelegateAtStart, booleanPerform, booleanPerform, booleanPerform, booleanPerform, booleanPerform, delegates, hasDelegate, perform, perform, perform, perform, perform, perform, removeDelegate, setDelegateOrder
public ERXDatabaseContextMulticastingDelegate()
public static void addDefaultDelegate(Object newDelegate)
Convenience method to add newDelegate
as the last delegate called for
EODatabaseContext.defaultDelegate()
. There are three cases to handle:
ERXDatabaseContextMulticastingDelegate
is created as the default delegate, and newDelegate
added.ERXDatabaseContextMulticastingDelegate
,
newDelegate
is added at the end of the delegate chain.ERXDatabaseContextMulticastingDelegate
,
an ERXDatabaseContextMulticastingDelegate
is created as the default delegate, the existing delegate is
added, then newDelegate
is added at the end of the delegate chain.newDelegate
- object to include as delegatepublic void databaseContextDidFetchObjects(EODatabaseContext dbCtxt, NSArray array, EOFetchSpecification fetchSpec, EOEditingContext ec)
public void databaseContextDidSelectObjects(EODatabaseContext dbCtxt, EOFetchSpecification fetchSpec, EODatabaseChannel dbChannel)
public boolean databaseContextFailedToFetchObject(EODatabaseContext dbCtxt, Object object, EOGlobalID gid)
public NSDictionary databaseContextNewPrimaryKey(EODatabaseContext dbCtxt, Object object, EOEntity entity)
public boolean databaseContextShouldFetchArrayFault(EODatabaseContext dbCtxt, Object object)
public boolean databaseContextShouldFetchObjectFault(EODatabaseContext dbCtxt, Object object)
public NSArray databaseContextShouldFetchObjects(EODatabaseContext dbCtxt, EOFetchSpecification fetchSpec, EOEditingContext ec)
public boolean databaseContextShouldHandleDatabaseException(EODatabaseContext dbCtxt, Throwable exception)
public boolean databaseContextShouldInvalidateObjectWithGlobalID(EODatabaseContext dbCtxt, EOGlobalID gid, NSDictionary dic)
public boolean databaseContextShouldLockObjectWithGlobalID(EODatabaseContext dbCtxt, EOGlobalID gid, NSDictionary dic)
public boolean databaseContextShouldRaiseExceptionForLockFailure(EODatabaseContext dbCtxt, Throwable exception)
public boolean databaseContextShouldSelectObjects(EODatabaseContext dbCtxt, EOFetchSpecification fetchSpec, EODatabaseChannel dbChannel)
public NSDictionary databaseContextShouldUpdateCurrentSnapshot(EODatabaseContext dbCtxt, NSDictionary existingSnapshot, NSDictionary fetchedRow, EOGlobalID gid, EODatabaseChannel dbChannel)
EODatabaseContext.Delegate.databaseContextShouldUpdateCurrentSnapshot(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.foundation.NSDictionary, com.webobjects.foundation.NSDictionary, com.webobjects.eocontrol.EOGlobalID, com.webobjects.eoaccess.EODatabaseChannel)
,
EODatabase.snapshotForGlobalID(EOGlobalID, long)
public boolean databaseContextShouldUsePessimisticLock(EODatabaseContext dbCtxt, EOFetchSpecification fetchSpec, EODatabaseChannel dbChannel)
public void databaseContextWillFireArrayFaultForGlobalID(EODatabaseContext dbCtxt, EOGlobalID gid, EORelationship rel, EOFetchSpecification fetchSpec, EOEditingContext ec)
public void databaseContextWillFireObjectFaultForGlobalID(EODatabaseContext dbCtxt, EOGlobalID gid, EOFetchSpecification fetchSpec, EOEditingContext ec)
public NSArray databaseContextWillOrderAdaptorOperations(EODatabaseContext dbCtxt, NSArray databaseOps)
public NSArray databaseContextWillPerformAdaptorOperations(EODatabaseContext dbCtxt, NSArray adaptorOps, EOAdaptorChannel adChannel)
public boolean databaseContextWillRunLoginPanelToOpenDatabaseChannel(EODatabaseContext dbCtxt, EODatabaseChannel dbChannel)
Copyright © 2002 – 2024 Project Wonder.