Class Variable


  • public class Variable
    extends Object
    Variables can be used in both test and assignment expressions in the FieldRules. If there is a non-trivial expression that will be used more than once in the evaluation of FieldRules, then use a Variable to save the value of that expression. Note that all Variables will be evaluated for every insert and update of every value. Variables can also be the target of assignments in RuleCases, if there are expressions that only need to be evaluated for certain cases.
    Since:
    2.1.4
    • Constructor Detail

      • Variable

        public Variable()
    • Method Detail

      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getInsertInitialValue

        public String getInsertInitialValue()
        Returns:
        the insertInitialValue
      • setInsertInitialValue

        public void setInsertInitialValue​(String insertInitialValue)
        Parameters:
        insertInitialValue - the insertInitialValue to set
      • getUpdateInitialValue

        public String getUpdateInitialValue()
        Returns:
        the updateInitialValue
      • setUpdateInitialValue

        public void setUpdateInitialValue​(String updateInitialValue)
        Parameters:
        updateInitialValue - the updateInitialValue to set
      • getType

        public DataType getType()
        Returns:
        the type
      • setType

        public void setType​(DataType type)
        Parameters:
        type - the type to set Note that the complex types -- LIST, TUPLE, CAPTURE, and FUNCTION -- are not currently supported.
      • isComplete

        public boolean isComplete()
        Returns: