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() |
Modifier and Type | Method and Description |
---|---|
static void |
addDefaultDelegate(Object newDelegate)
Convenience method to add
newDelegate as the last delegate called for
EODatabaseContext.defaultDelegate() . |
void |
databaseContextDidFetchObjects(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
NSArray array,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec,
com.webobjects.eocontrol.EOEditingContext ec) |
void |
databaseContextDidSelectObjects(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec,
com.webobjects.eoaccess.EODatabaseChannel dbChannel) |
boolean |
databaseContextFailedToFetchObject(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
Object object,
com.webobjects.eocontrol.EOGlobalID gid) |
NSDictionary |
databaseContextNewPrimaryKey(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
Object object,
com.webobjects.eoaccess.EOEntity entity) |
boolean |
databaseContextShouldFetchArrayFault(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
Object object) |
boolean |
databaseContextShouldFetchObjectFault(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
Object object) |
NSArray |
databaseContextShouldFetchObjects(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec,
com.webobjects.eocontrol.EOEditingContext ec) |
boolean |
databaseContextShouldHandleDatabaseException(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
Throwable exception) |
boolean |
databaseContextShouldInvalidateObjectWithGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOGlobalID gid,
NSDictionary dic) |
boolean |
databaseContextShouldLockObjectWithGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOGlobalID gid,
NSDictionary dic) |
boolean |
databaseContextShouldRaiseExceptionForLockFailure(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
Throwable exception) |
boolean |
databaseContextShouldSelectObjects(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec,
com.webobjects.eoaccess.EODatabaseChannel dbChannel) |
NSDictionary |
databaseContextShouldUpdateCurrentSnapshot(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
NSDictionary existingSnapshot,
NSDictionary fetchedRow,
com.webobjects.eocontrol.EOGlobalID gid,
com.webobjects.eoaccess.EODatabaseChannel dbChannel) |
boolean |
databaseContextShouldUsePessimisticLock(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec,
com.webobjects.eoaccess.EODatabaseChannel dbChannel) |
void |
databaseContextWillFireArrayFaultForGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOGlobalID gid,
com.webobjects.eoaccess.EORelationship rel,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec,
com.webobjects.eocontrol.EOEditingContext ec) |
void |
databaseContextWillFireObjectFaultForGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eocontrol.EOGlobalID gid,
com.webobjects.eocontrol.EOFetchSpecification fetchSpec,
com.webobjects.eocontrol.EOEditingContext ec) |
NSArray |
databaseContextWillOrderAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
NSArray databaseOps) |
NSArray |
databaseContextWillPerformAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
NSArray adaptorOps,
com.webobjects.eoaccess.EOAdaptorChannel adChannel) |
boolean |
databaseContextWillRunLoginPanelToOpenDatabaseChannel(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
com.webobjects.eoaccess.EODatabaseChannel dbChannel) |
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(com.webobjects.eoaccess.EODatabaseContext dbCtxt, NSArray array, com.webobjects.eocontrol.EOFetchSpecification fetchSpec, com.webobjects.eocontrol.EOEditingContext ec)
EODatabaseContext.Delegate.databaseContextDidFetchObjects(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.foundation.NSArray, com.webobjects.eocontrol.EOFetchSpecification, com.webobjects.eocontrol.EOEditingContext)
public void databaseContextDidSelectObjects(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOFetchSpecification fetchSpec, com.webobjects.eoaccess.EODatabaseChannel dbChannel)
EODatabaseContext.Delegate.databaseContextDidSelectObjects(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOFetchSpecification, com.webobjects.eoaccess.EODatabaseChannel)
public boolean databaseContextFailedToFetchObject(com.webobjects.eoaccess.EODatabaseContext dbCtxt, Object object, com.webobjects.eocontrol.EOGlobalID gid)
EODatabaseContext.Delegate.databaseContextFailedToFetchObject(com.webobjects.eoaccess.EODatabaseContext, java.lang.Object, com.webobjects.eocontrol.EOGlobalID)
public NSDictionary databaseContextNewPrimaryKey(com.webobjects.eoaccess.EODatabaseContext dbCtxt, Object object, com.webobjects.eoaccess.EOEntity entity)
EODatabaseContext.Delegate.databaseContextNewPrimaryKey(com.webobjects.eoaccess.EODatabaseContext, java.lang.Object, com.webobjects.eoaccess.EOEntity)
public boolean databaseContextShouldFetchArrayFault(com.webobjects.eoaccess.EODatabaseContext dbCtxt, Object object)
EODatabaseContext.Delegate.databaseContextShouldFetchArrayFault(com.webobjects.eoaccess.EODatabaseContext, java.lang.Object)
public boolean databaseContextShouldFetchObjectFault(com.webobjects.eoaccess.EODatabaseContext dbCtxt, Object object)
EODatabaseContext.Delegate.databaseContextShouldFetchObjectFault(com.webobjects.eoaccess.EODatabaseContext, java.lang.Object)
public NSArray databaseContextShouldFetchObjects(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOFetchSpecification fetchSpec, com.webobjects.eocontrol.EOEditingContext ec)
EODatabaseContext.Delegate.databaseContextShouldFetchObjects(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOFetchSpecification, com.webobjects.eocontrol.EOEditingContext)
public boolean databaseContextShouldHandleDatabaseException(com.webobjects.eoaccess.EODatabaseContext dbCtxt, Throwable exception)
EODatabaseContext.Delegate.databaseContextShouldHandleDatabaseException(com.webobjects.eoaccess.EODatabaseContext, java.lang.Throwable)
public boolean databaseContextShouldInvalidateObjectWithGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOGlobalID gid, NSDictionary dic)
EODatabaseContext.Delegate.databaseContextShouldInvalidateObjectWithGlobalID(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOGlobalID, com.webobjects.foundation.NSDictionary)
public boolean databaseContextShouldLockObjectWithGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOGlobalID gid, NSDictionary dic)
EODatabaseContext.Delegate.databaseContextShouldLockObjectWithGlobalID(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOGlobalID, com.webobjects.foundation.NSDictionary)
public boolean databaseContextShouldRaiseExceptionForLockFailure(com.webobjects.eoaccess.EODatabaseContext dbCtxt, Throwable exception)
EODatabaseContext.Delegate.databaseContextShouldRaiseExceptionForLockFailure(com.webobjects.eoaccess.EODatabaseContext, java.lang.Throwable)
public boolean databaseContextShouldSelectObjects(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOFetchSpecification fetchSpec, com.webobjects.eoaccess.EODatabaseChannel dbChannel)
EODatabaseContext.Delegate.databaseContextShouldSelectObjects(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOFetchSpecification, com.webobjects.eoaccess.EODatabaseChannel)
public NSDictionary databaseContextShouldUpdateCurrentSnapshot(com.webobjects.eoaccess.EODatabaseContext dbCtxt, NSDictionary existingSnapshot, NSDictionary fetchedRow, com.webobjects.eocontrol.EOGlobalID gid, com.webobjects.eoaccess.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(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOFetchSpecification fetchSpec, com.webobjects.eoaccess.EODatabaseChannel dbChannel)
EODatabaseContext.Delegate.databaseContextShouldUsePessimisticLock(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOFetchSpecification, com.webobjects.eoaccess.EODatabaseChannel)
public void databaseContextWillFireArrayFaultForGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOGlobalID gid, com.webobjects.eoaccess.EORelationship rel, com.webobjects.eocontrol.EOFetchSpecification fetchSpec, com.webobjects.eocontrol.EOEditingContext ec)
EODatabaseContext.Delegate.databaseContextWillFireArrayFaultForGlobalID(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOGlobalID, com.webobjects.eoaccess.EORelationship, com.webobjects.eocontrol.EOFetchSpecification, com.webobjects.eocontrol.EOEditingContext)
public void databaseContextWillFireObjectFaultForGlobalID(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eocontrol.EOGlobalID gid, com.webobjects.eocontrol.EOFetchSpecification fetchSpec, com.webobjects.eocontrol.EOEditingContext ec)
EODatabaseContext.Delegate.databaseContextWillFireObjectFaultForGlobalID(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eocontrol.EOGlobalID, com.webobjects.eocontrol.EOFetchSpecification, com.webobjects.eocontrol.EOEditingContext)
public NSArray databaseContextWillOrderAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext dbCtxt, NSArray databaseOps)
EODatabaseContext.Delegate.databaseContextWillOrderAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.foundation.NSArray)
public NSArray databaseContextWillPerformAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext dbCtxt, NSArray adaptorOps, com.webobjects.eoaccess.EOAdaptorChannel adChannel)
EODatabaseContext.Delegate.databaseContextWillPerformAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.foundation.NSArray, com.webobjects.eoaccess.EOAdaptorChannel)
public boolean databaseContextWillRunLoginPanelToOpenDatabaseChannel(com.webobjects.eoaccess.EODatabaseContext dbCtxt, com.webobjects.eoaccess.EODatabaseChannel dbChannel)
EODatabaseContext.Delegate.databaseContextWillRunLoginPanelToOpenDatabaseChannel(com.webobjects.eoaccess.EODatabaseContext, com.webobjects.eoaccess.EODatabaseChannel)
Copyright © 2002 – 2020 Project Wonder.