Class ParameterExpression

  • All Implemented Interfaces:
    Serializable

    public class ParameterExpression
    extends Expression
    Expression representing a parameter. The parameter can be explicit (declared as input to the query) or implicit (implied based on the syntax in the query).
    See Also:
    Serialized Form
    • Constructor Detail

      • ParameterExpression

        public ParameterExpression​(String name,
                                   int position)
      • ParameterExpression

        public ParameterExpression​(String name,
                                   Class type)
        Constructor for when we know the name and the type (e.g via criteria queries).
        Parameters:
        name - The name
        type - The type
    • Method Detail

      • getId

        public String getId()
      • getPosition

        public int getPosition()
      • setType

        public void setType​(Class type)
      • getType

        public Class getType()
      • setName

        public void setName​(String name)
      • bind

        public Symbol bind​(SymbolTable symtbl)
        Method to bind the expression to the symbol table as appropriate.
        Specified by:
        bind in class Expression
        Parameters:
        symtbl - Symbol Table
        Returns:
        The symbol for this expression