org.apache.ignite.springdata.repository.query

## Class IgniteQueryGenerator

- java.lang.Object
- - org.apache.ignite.springdata.repository.query.IgniteQueryGenerator

-     public class IgniteQueryGenerator
      extends Object

  Ignite query generator for Spring Data framework.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IgniteQueryGenerator()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static StringBuilder` | `addPaging(StringBuilder sql, org.springframework.data.domain.Pageable pageable)` Add a dynamic part of a query for the pagination support.
    `static StringBuilder` | `addSorting(StringBuilder sql, org.springframework.data.domain.Sort sort)` Add a dynamic part of query for the sorting support.
    `static @NotNull IgniteQuery` | `generateSql(Method mtd, org.springframework.data.repository.core.RepositoryMetadata metadata)`
    `static org.apache.ignite.springdata.repository.query.IgniteQuery.Option` | `getOptions(Method mtd)` Determines whether query is dynamic or not (by list of method parameters)

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

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

- - ### Constructor Detail

    - #### IgniteQueryGenerator

          public IgniteQueryGenerator()

  - ### Method Detail

    - #### generateSql

          @NotNull
          public static @NotNull IgniteQuery generateSql(Method mtd,
                                                                  org.springframework.data.repository.core.RepositoryMetadata metadata)

      Parameters:
        `mtd` - Method.
        `metadata` - Metadata.

    - #### addSorting

          public static StringBuilder addSorting(StringBuilder sql,
                                                 org.springframework.data.domain.Sort sort)

      Add a dynamic part of query for the sorting support.
      Parameters:
        `sql` - SQL text string.
        `sort` - Sort method.

    - #### addPaging

          public static StringBuilder addPaging(StringBuilder sql,
                                                org.springframework.data.domain.Pageable pageable)

      Add a dynamic part of a query for the pagination support.
      Parameters:
        `sql` - Builder instance.
        `pageable` - Pageable instance.
      Returns:
        Builder instance.

    - #### getOptions

          public static org.apache.ignite.springdata.repository.query.IgniteQuery.Option getOptions(Method mtd)

      Determines whether query is dynamic or not (by list of method parameters)
      Parameters:
        `mtd` - Method.
      Returns:
        type of options

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.0
Release Date | : October 15 2020