Overview

The dsiConstraintsApplyStyle enumeration is not used anymore because we are limiting the constraint apply style options to only Top Down. As a result, all relevant interfaces in OFDAHeaderData will be deprecated and the ConstraintsApplyStyle tag will not be used.

Compile Time Changes

custom.dataCatalog.builder.constraints

DcDBBuilderEditConstraintsCard

Removed the entire Constraints Toolbox for the following reasons:

  1. Constraints apply style is fixed to Top Down and All is now deprecated.
  2. Allow individual toggling of constraint expressions to be a valid/invalid constraint type instead of forcing all expressions to abide to a single type.
Removed: public DcDBBuilderShrinkWindow toolboxWindow;
Removed: public Display appleStyleDisplay;
Removed: public DsRadioButton applyStyleAllRadioButton;
Removed: public DsRadioButton applyStyleTopDownRadioButton;
Removed: public StateControlGroup applyStyleControlGroup;
Removed: public Display constraintTypeDisplay;
Removed: public DsRadioButton validConstraintTypeRadioButton;
Removed: public DsRadioButton invalidConstraintTypeRadioButton;
Removed: public StateControlGroup constraintTypeControlGroup;

New argument to determine the constraint's expression type.

Old: extend public bool validExpression(str exp, StrBuf error)
New: extend public bool validExpression(dsiConstraintExpressionType constraintExpType, str exp, StrBuf error)

DcConstraintExpColumn

Column label does not need to be updated dynamically anymore.

Removed: public str labelText()

custom.dataCatalog.builder.undo

dcConstraintsUndoOp.cm is removed as dsiConstraintsApplyStyle and dsiConstraintType enumerations are not used anymore.

Removed: public class DcConstraintTypeUndoOp extends DcUndoOp

cm.abstract.dataSymInterface

The following method signatures are changed to accommodate the addition of the constraint expression type.

// DsiExprValidationEnv (dsiExprValidationEnv.cm)
Old: public constructor(VxRuntime rt, str expr, DataCatalog cat)
New: public constructor(VxRuntime rt, dsiConstraintExpressionType exprType, str expr, DataCatalog cat)

Old: extend public void doesNothign(VxExpr e, StrBuf error)
New: extend public void doesNothing(VxExpr e, StrBuf error)

// dsiVariants.cm
Old: public VConstraint dsiCreateConstraint(DataCatalog catalog, str expression)
New: public VConstraint dsiCreateConstraint(dsiConstraintExpressionType expressionType, str expression)

Old: public bool dsiValidateConstraintExpr(DataCatalog cat, str exp, StrBuf error=null)
New: public bool dsiValidateConstraintExpr(DataCatalog cat, dsiConstraintExpressionType exprType, str expr, StrBuf error=null)

Old: public str->SFeature dsiVariantsFeatures(DsiPData data, str featureCode)
New: public str->SFeature dsiVariantsFeatures(DsiPData data, str featurePath)

Old: public str->Object dsiVariantsTableSelectedValues(DsiPData data, str featCode)
New: public str->Object dsiVariantsTableSelectedValues(DsiPData data, str featurePath)

Removed: public void dsiClearVariantsTableCache()

All interfaces of constraintsApplyStyle and constraintType in OFDAHeaderData are now deprecated.

// OFDAHeaderData
Deprecated: private dsiConstraintsApplyStyle _constraintsApplyStyle : deprecated;
Deprecated: extend public dsiConstraintsApplyStyle constraintsApplyStyle() : deprecated
Deprecated: extend public dsiConstraintsApplyStyle constraintsApplyStyle=(dsiConstraintsApplyStyle constraintsApplyStyle) : deprecated
Deprecated: extend public dsiConstraintType constraintType() : deprecated
Deprecated: extend public dsiConstraintType constraintType=(dsiConstraintType constraintType) : deprecated

Runtime/Behavior Changes

Certain tags stored in XML will be removed/added in ofdaImport() and ofdaExport(). db3 import and export behaviours will also be affected similarly. Hence, forward compatibility would not be supported i.e., importing a newer XML/db3 file into an older version of CET may not have the correct apply style applied to the catalog.

The following classes are affected:

DataCatalog

Tags removed:

  • ConstraintsApplyStyle
  • ConstraintType

DsRuleType

Tags added:

  • ConstraintExpressionType