public class ERXEntityDependencyOrderingDelegate extends Object
EODatabaseContext delegate to order adaptor operations by FK constraints. This prevents most ordering operations on databases like MS SQL that do not support deferred constraints like a real database. The easiest way to use this is:
ERXDatabaseContextMulticastingDelegate.addDefaultDelegate(new ERXEntityDependencyOrderingDelegate());To turn this on for a Wonder application, just set this property:
com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active = true
Modifier and Type | Field and Description |
---|---|
protected com.webobjects.foundation.NSComparator |
adaptorOpComparator |
static String |
ERXEntityDependencyOrderingDelegateActiveKey |
Constructor and Description |
---|
ERXEntityDependencyOrderingDelegate() |
Modifier and Type | Method and Description |
---|---|
protected com.webobjects.foundation.NSComparator |
adaptorOpComparator()
Lazy creation of an EOAdaptorOpComparator that uses a list of entities that are in FK dependency order.
|
boolean |
databaseContextShouldHandleDatabaseException(com.webobjects.eoaccess.EODatabaseContext dbCtxt,
Throwable exception) |
NSArray<com.webobjects.eoaccess.EOAdaptorOperation> |
databaseContextWillPerformAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext aDatabaseContext,
NSArray<com.webobjects.eoaccess.EOAdaptorOperation> adaptorOperations,
com.webobjects.eoaccess.EOAdaptorChannel adaptorChannel)
EODatabaseContext.Delegate method to order a list of adaptor operations.
|
public static final String ERXEntityDependencyOrderingDelegateActiveKey
protected com.webobjects.foundation.NSComparator adaptorOpComparator
protected com.webobjects.foundation.NSComparator adaptorOpComparator()
EOAdaptorOpComparator
public NSArray<com.webobjects.eoaccess.EOAdaptorOperation> databaseContextWillPerformAdaptorOperations(com.webobjects.eoaccess.EODatabaseContext aDatabaseContext, NSArray<com.webobjects.eoaccess.EOAdaptorOperation> adaptorOperations, com.webobjects.eoaccess.EOAdaptorChannel adaptorChannel)
aDatabaseContext
- EODatabaseContext that the operations will be executed inadaptorOperations
- list of operations to executeadaptorChannel
- the adaptor channel these will be executed onEODatabaseContext.Delegate.databaseContextWillPerformAdaptorOperations(EODatabaseContext,NSArray,EOAdaptorChannel)
public boolean databaseContextShouldHandleDatabaseException(com.webobjects.eoaccess.EODatabaseContext dbCtxt, Throwable exception)
Copyright © 2002 – 2020 Project Wonder.