addRelation(Relation relation) Inserts a relation in the correct position (relations are always positioned first
amongst an Entity's children, because it looks nicer!).
notifyRelationsThatConstructionIsFinished() While an entity is being created, its constituent relations have to wait for the entity to finish being
constructed before they can finish initialising themselves.
Inserts a relation in the correct position (relations are always positioned first
amongst an Entity's children, because it looks nicer!).
Parameters: relation -
Display name is used to determine which field to render in drop downl lists.
if not set, the primary key is used.
the name of the field to use to display an entity in a dropdown list.
Iterates over all the table columns and determines whether the table has a single key or a composite key. The
key is said to be composite when more than one column is part of the key.
true only when more the table has a composite key else false
Check if one of the fields needs a sequence.
If so, return true.
true if a sequence is needed.
notifyRelationsThatConstructionIsFinished
public void notifyRelationsThatConstructionIsFinished()(Code)
While an entity is being created, its constituent relations have to wait for the entity to finish being
constructed before they can finish initialising themselves. Call this method when the Entity is ready.
notifyRelationsThatFieldNameChanged
public void notifyRelationsThatFieldNameChanged(String oldName, String text)(Code)
When a field name is changed, call this to tell all relations to update their lists.
Parameters: oldName - Parameters: text -