Sync Pair
A pair of two elements which are compared, and their parents. It can be two columns, foreign keys, constriants, indexes, etc. One of elements can be empty (is missing) which will result in a TableExistsDiff, ColumnExistsDiff, IndexExistsDiff, etc. The parents ( which is in most cases the schema ) is required to be able to handle the element missing differences.
Parameters
The class of the parent element ( Schema for Tables, Table for Columns, Indexes, Constraints...)
Inheritors
Constructors
Can synchronize using a specific schema mapping. Used in :
Used in:
Used in :
Properties
Functions
Get the count of dropped items if this action is applied.
Apply the selected actions in to the database. This requires to do first syncPair.setAction(SyncSide.toRight)
Generate the commit script
Get a list of differences for this node. A node can be a pair of tables, or columns, and differences can be rename, exists diff, data type diff, mandatory diff, etc.
Merge differences into the local model
Set an action for this and all sub-nodes. This is similar with the Synchronization dialog, like clicking an action for each element. SyncAction.toLeft would mean to modify the model, toRight to modify the database.
Generate the script for a Synchronization operation.