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 NSComparator |
adaptorOpComparator |
static String |
ERXEntityDependencyOrderingDelegateActiveKey |
Constructor and Description |
---|
ERXEntityDependencyOrderingDelegate() |
Modifier and Type | Method and Description |
---|---|
protected NSComparator |
adaptorOpComparator()
Lazy creation of an EOAdaptorOpComparator that uses a list of entities that are in FK dependency order.
|
boolean |
databaseContextShouldHandleDatabaseException(EODatabaseContext dbCtxt,
Throwable exception) |
NSArray<EOAdaptorOperation> |
databaseContextWillPerformAdaptorOperations(EODatabaseContext aDatabaseContext,
NSArray<EOAdaptorOperation> adaptorOperations,
EOAdaptorChannel adaptorChannel)
EODatabaseContext.Delegate method to order a list of adaptor operations.
|
public static final String ERXEntityDependencyOrderingDelegateActiveKey
protected NSComparator adaptorOpComparator
protected NSComparator adaptorOpComparator()
EOAdaptorOpComparator
public NSArray<EOAdaptorOperation> databaseContextWillPerformAdaptorOperations(EODatabaseContext aDatabaseContext, NSArray<EOAdaptorOperation> adaptorOperations, 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(EODatabaseContext dbCtxt, Throwable exception)
Copyright © 2002 – 2024 Project Wonder.