Class ModelDiff


  • public class ModelDiff
    extends java.lang.Object
    Model diff including MAQL DDL. Deserialization only.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ModelDiff.UpdateScript
      Set of MAQL DDL scripts with one variant of side-effects (truncation of loaded data, drops of related objects...).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getUpdateMaql()
      Returns MAQL DDL update script that should be executed to update the source model to the target state.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getUpdateMaql

        public java.util.List<java.lang.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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object