public class OMForeignKeyColumnTransformer
extends Object
Sets the referenced and referencing columns for the column.
These references are defined by foreign key definitions.
The structure before transformation is:
database
table
column
column
...
foreign-key
reference
foreign-key
reference
reference
...
...
table
table
...
The structure after transformation is
database
table
column
referenced-column (a foreign key exists containing the current column
as local reference)
column (the foreign reference of the said foreign key)
foreign-key (the foreign key defining the relation)
referencing-column (a foreign key exists containing the current column
as foreign reference)
column (the local reference of the said foreign key)
foreign-key (the foreign key defining the relation)
referencing-column
column
foreign-key
...
column
...
foreign-key
reference
foreign-key
reference
reference
...
...
table
table
...
Note that the foreign keys in the foreign-keys and referencing-foreign-keys
are the original elements, not just copies.