Interface SpiExpressionRequest

All Superinterfaces:
DbExpressionRequest, SpiExpressionBind
All Known Implementing Classes:
DefaultExpressionRequest

public interface SpiExpressionRequest extends SpiExpressionBind, DbExpressionRequest
Request object used for gathering expression sql and bind values.
  • Method Details

    • platformHandler

      DbExpressionHandler platformHandler()
      Return the DB specific handler for JSON and ARRAY expressions.
    • parseDeploy

      String parseDeploy(String logicalProp)
      Parse the logical property name to the deployment name.
    • queryRequest

      SpiOrmQueryRequest<?> queryRequest()
      Return the associated QueryRequest.
    • append

      SpiExpressionRequest append(String expression)
      Append to the expression sql without any parsing.
      Specified by:
      append in interface DbExpressionRequest
    • append

      SpiExpressionRequest append(char c)
      Append to the expression sql without any parsing.
      Specified by:
      append in interface DbExpressionRequest
    • property

      SpiExpressionRequest property(String expression)
      Append to the expression sql with logical property parsing to db columns with logical path prefix.

      This is a fast path case when expression is a bean property path and falls back to using parse() when that isn't the case.

      Specified by:
      property in interface DbExpressionRequest
    • parse

      SpiExpressionRequest parse(String expression)
      Append to the expression sql with logical property parsing to db columns with logical path prefix.
    • sql

      String sql()
      Return the accumulated expression sql for all expressions in this request.
    • bindValues

      List<Object> bindValues()
      Return the ordered list of bind values for all expressions in this request.
    • nextParameter

      int nextParameter()
      Increments the parameter index and returns that value.
    • appendLike

      void appendLike(boolean rawLikeExpression)
      Append a DB Like clause.
    • appendInExpression

      void appendInExpression(boolean not, List<Object> bindValues)
      Append IN expression taking into account platform and type support for Multi-value.