Class AbstractTextExpression

    • Method Detail

      • addSql

        public void addSql​(SpiExpressionRequest request)
        Description copied from interface: SpiExpression
        Add some sql to the query.

        This will contain ? as a place holder for each associated bind values.

        The 'sql' added to the query can contain object property names rather than db tables and columns. This 'sql' is later parsed converting the logical property names to their full database column names.

        Parameters:
        request - the associated request.
      • addBindValues

        public void addBindValues​(SpiExpressionRequest request)
        Description copied from interface: SpiExpression
        Add the parameter values to be set against query. For each ? place holder there should be a corresponding value that is added to the bindList.
        Parameters:
        request - the associated request.
      • queryPlanHash

        public void queryPlanHash​(StringBuilder builder)
        Description copied from interface: SpiExpression
        Calculate a hash value used to identify a query for AutoTune tuning.

        That is, if the hash changes then the query will be considered different from an AutoTune perspective and get different tuning.

      • queryBindHash

        public int queryBindHash()
        Description copied from interface: SpiExpression
        Return the hash value for the values that will be bound.
      • isSameByBind

        public boolean isSameByBind​(SpiExpression other)
        Description copied from interface: SpiExpression
        Return true if the expression is the same with respect to bind values.