public class ERXEntityFKConstraintOrder extends ERXEntityOrder
ERXEntityOrder.EntityDeleteOrderComparator, ERXEntityOrder.EntityInsertOrderComparatorallEntities, groupedEntities| Constructor and Description |
|---|
ERXEntityFKConstraintOrder()
Convenience constructor for implementing classes.
|
ERXEntityFKConstraintOrder(com.webobjects.eoaccess.EOModelGroup modelGroup)
Designated constructor for implementing classes.
|
| Modifier and Type | Method and Description |
|---|---|
protected NSDictionary |
dependenciesByEntity()
Processes the list of entities, creating the ordering dictionary based on foreign key constraints.
|
protected String |
dependencyKeyFor(com.webobjects.eoaccess.EOEntity entity)
This implementation returns
entity.externalName() as the dependcy is actually on tables not EOEntities
. |
protected NSMutableSet |
entitiesDependentOn(NSMutableDictionary dependencies,
com.webobjects.eoaccess.EOEntity entity)
Returns the list of the names of the entities that reference (depend on)
this entity.
|
protected boolean |
hasForeignKeyConstraint(com.webobjects.eoaccess.EORelationship relationship) |
allEntities, createListOfEntities, dependentEntities, generateOrdering, groupedEntities, hasDependenciesForEntitypublic ERXEntityFKConstraintOrder(com.webobjects.eoaccess.EOModelGroup modelGroup)
modelGroup - EOModelGroup to get list of all entities frompublic ERXEntityFKConstraintOrder()
EOModelGroup.defaultGroup().protected NSDictionary dependenciesByEntity()
dependenciesByEntity in class ERXEntityOrderprotected boolean hasForeignKeyConstraint(com.webobjects.eoaccess.EORelationship relationship)
relationship - EORelationship to testtrue if relationship models a relation that will have a foreign key constraint in the databaseprotected String dependencyKeyFor(com.webobjects.eoaccess.EOEntity entity)
entity.externalName() as the dependcy is actually on tables not EOEntities
.dependencyKeyFor in class ERXEntityOrderentity - EOEntity to return key into dependency dictionary forentity into dependency dictionary returned by dependenciesByEntity()protected NSMutableSet entitiesDependentOn(NSMutableDictionary dependencies, com.webobjects.eoaccess.EOEntity entity)
builddependencyList().
If builddependencyList() has not finished executing, the
list returned by this method may not be complete.dependencies - list of dependencies being built by
builddependencyList()entity - EOEntity to return list of referencing entities forCopyright © 2002 – 2020 Project Wonder.