Class ModelDiff


  • public class ModelDiff
    extends Object
    Model diff including MAQL DDL. Deserialization only.
    • Method Detail

      • getUpdateMaql

        public List<String> getUpdateMaql()
        Returns MAQL DDL update script that should be executed to update the source model to the target state.

        It picks the best possible variant by it's side-effects (truncation of loaded data, drops of related objects). It returns first present variant by order:

        1. preserve data + no cascade drops
        2. no preserve data + no cascade drops
        3. preserve data + cascade drops
        4. no preserve data + cascade drops
        Returned list will be empty if there are no differences.
        Returns:
        MAQL DDL update scripts. Empty list if there are no differences.