public class ERXEntityFKConstraintOrder extends ERXEntityOrder
ERXEntityOrder.EntityDeleteOrderComparator, ERXEntityOrder.EntityInsertOrderComparator
allEntities, groupedEntities
Constructor and Description |
---|
ERXEntityFKConstraintOrder()
Convenience constructor for implementing classes.
|
ERXEntityFKConstraintOrder(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(EOEntity entity)
This implementation returns
entity.externalName() as the dependcy is actually on tables not EOEntities
. |
protected NSMutableSet |
entitiesDependentOn(NSMutableDictionary dependencies,
EOEntity entity)
Returns the list of the names of the entities that reference (depend on)
this entity.
|
protected boolean |
hasForeignKeyConstraint(EORelationship relationship) |
allEntities, createListOfEntities, dependentEntities, generateOrdering, groupedEntities, hasDependenciesForEntity
public ERXEntityFKConstraintOrder(EOModelGroup modelGroup)
modelGroup
- EOModelGroup to get list of all entities frompublic ERXEntityFKConstraintOrder()
EOModelGroup.defaultGroup()
.protected NSDictionary dependenciesByEntity()
dependenciesByEntity
in class ERXEntityOrder
protected boolean hasForeignKeyConstraint(EORelationship relationship)
relationship
- EORelationship to testtrue
if relationship models a relation that will have a foreign key constraint in the databaseprotected String dependencyKeyFor(EOEntity entity)
entity.externalName()
as the dependcy is actually on tables not EOEntities
.dependencyKeyFor
in class ERXEntityOrder
entity
- EOEntity to return key into dependency dictionary forentity
into dependency dictionary returned by dependenciesByEntity()
protected NSMutableSet entitiesDependentOn(NSMutableDictionary dependencies, 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 – 2024 Project Wonder.