Class ModelDiff
java.lang.Object
com.gooddata.sdk.model.project.model.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 classModelDiff.UpdateScriptSet of MAQL DDL scripts with one variant of side-effects (truncation of loaded data, drops of related objects...). -
Method Summary
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.StringtoString()
-
Method Details
-
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:
- preserve data + no cascade drops
- no preserve data + no cascade drops
- preserve data + cascade drops
- no preserve data + cascade drops
- Returns:
- MAQL DDL update scripts. Empty list if there are no differences.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-