Class UnboundExpression


  • public class UnboundExpression
    extends SQLExpression
    Representation of an expression for an unbound variable. This is used where we have a variable in use in a query and at the point of needing it we haven't yet bound the variable. For example, in the following query
    this.names.contains(var) && var == someValue
    in the first clause the "var" is unbound when passing in to the InvokeExpression, so it is passed in as an UnboundExpression, and in that contains() method will be bound to the collection (element) table (a join added).
    • Field Detail

      • variableName

        protected String variableName
    • Constructor Detail

      • UnboundExpression

        public UnboundExpression​(SQLStatement stmt,
                                 String variableName)
        Constructor for an SQL expression for an unbound variable.
        Parameters:
        stmt - The statement
        variableName - name of the variable
    • Method Detail

      • getVariableName

        public String getVariableName()
        Accessor for the variable name
        Returns:
        Variable name that this represents