org.apache.ignite.springdata20.repository.query.spel

## Class SpelQueryContext.SpelExtractor

- java.lang.Object
- - org.apache.ignite.springdata20.repository.query.spel.SpelQueryContext.SpelExtractor

- Enclosing class:
    SpelQueryContext

      public class SpelQueryContext.SpelExtractor
      extends Object

  Parses a query string, identifies the contained SpEL expressions, replaces them with bind parameters and offers a `Map` from those bind parameters to the spel expression.

  The parser detects quoted parts of the query string and does not detect SpEL expressions inside such quoted parts of the query.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getParameter(String name)` Gets parameter.
    `String` | `getQueryString()` The query with all the SpEL expressions replaced with bind parameters.
    `boolean` | `isQuoted(int idx)` Is quoted.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getQueryString

          public String getQueryString()

      The query with all the SpEL expressions replaced with bind parameters.
      Returns:
        Guaranteed to be not null.

    - #### isQuoted

          public boolean isQuoted(int idx)

      Is quoted.
      Parameters:
        `idx` - the idx
      Returns:
        the boolean

    - #### getParameter

          public String getParameter(String name)

      Gets parameter.
      Parameters:
        `name` - the name
      Returns:
        the parameter

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.1
Release Date | : December 9 2020