public class IgniteQueryGenerator extends Object
Constructor and Description |
---|
IgniteQueryGenerator() |
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)
|
@NotNull public static @NotNull IgniteQuery generateSql(Method mtd, org.springframework.data.repository.core.RepositoryMetadata metadata)
mtd
- Method.metadata
- Metadata.public static StringBuilder addSorting(StringBuilder sql, org.springframework.data.domain.Sort sort)
sql
- SQL text string.sort
- Sort method.public static StringBuilder addPaging(StringBuilder sql, org.springframework.data.domain.Pageable pageable)
sql
- Builder instance.pageable
- Pageable instance.public static org.apache.ignite.springdata.repository.query.IgniteQuery.Option getOptions(Method mtd)
mtd
- Method.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019