|

Inserting New Entities
You may need to add an entity to software everywhere another entity is used. For example: Adding sub-category code when category code is present.
THE SOLUTION
ARCAD-Transformer uses the following method to do this:
- Assistance in developing the list of source database fields,
- Associating a new field name for each source database field,
- Iteration propagation of the entity examined (See § ARCAD-Transformer – Field expansion),
- Modifying source code by adding a line for the new entity, when the fields examined are:
- declared
- included in parameters
- used as a key
- assigned
- compared
If a field contains only the entity examined, a new field name is generated for the entity to add.
However, if the field examined is stored in larger structures, then these structures are expanded to take in the new field (by shifting the next fields).
It can be helpful to clarify the source code, by deleting lines that manage these useless fields, in order to facilitate code maintenance.
ARCAD-Transformer uses the follow method to do this:
- Assistance in developing the list of source database fields
- Iteration propagation of the entity examined (See § ARCAD-Transformer – Field expansion)
- Modifying the source code by putting obsolete fields into comments (or deleting them entirely)
- If a field contains only the entity examined, the line is deleted.
- However, if the field examined is stored in larger structures, then these structures are collapsed (by shifting the next fields).
|