public class PagedQueryString extends QueryString
QueryString
implementation handling paging functionality and behavior.QueryString
COUNT_PROJECTION, COUNT_QUERY, HINT_PATTERN, HINTS_OQL_TEMPLATE, IMPORT_OQL_TEMPLATE, IMPORT_PATTERN, IN_PARAMETER_PATTERN, IN_PATTERN, IN_VALUES_TEMPLATE, LIMIT_OQL_TEMPLATE, LIMIT_PATTERN, REGION_PATTERN, SELECT_OQL_TEMPLATE, STAR_PROJECTION, STAR_QUERY, TRACE_OQL_TEMPLATE, TRACE_PATTERN
Constructor and Description |
---|
PagedQueryString(String query)
Constructs a new instance of
PagedQueryString initialized with the given OQL-based query. |
Modifier and Type | Method and Description |
---|---|
protected Optional<GemfireQueryMethod> |
getQueryMethod() |
static PagedQueryString |
of(QueryString queryString)
Factory method used to construct a new instance of
PagedQueryString from an existing, non-null
QueryString . |
static PagedQueryString |
of(String query)
Factory method used to construct a new instance of
PagedQueryString initialized with
the given OQL-based query. |
PagedQueryString |
withQueryMethod(GemfireQueryMethod queryMethod) |
adjustLimit, asDistinct, bindIn, count, from, fromRegion, fromRegion, getDigitsOnly, getInParameterIndexes, getLimit, getQuery, isLimited, orderBy, toString, withHints, withImport, withLimit, withTrace
public PagedQueryString(@NonNull String query)
PagedQueryString
initialized with the given OQL-based query.query
- String
containing the OQL query statement.IllegalArgumentException
- if the OQL query
is null or empty.public static PagedQueryString of(@NonNull QueryString queryString)
PagedQueryString
from an existing, non-null
QueryString
.queryString
- QueryString
on which the PagedQueryString
will be based.PagedQueryString
initialized with the OQL query
from the given QueryString
.IllegalArgumentException
- if QueryString
is null.QueryString
,
of(String)
public static PagedQueryString of(@NonNull String query)
PagedQueryString
initialized with
the given OQL-based query.query
- String
containing the OQL query statement.PagedQueryString
initialized with the given OQL-based query.IllegalArgumentException
- if the OQL query
is null or empty.PagedQueryString(String)
protected Optional<GemfireQueryMethod> getQueryMethod()
public PagedQueryString withQueryMethod(GemfireQueryMethod queryMethod)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.