public class StringBasedGemfireRepositoryQuery extends GemfireRepositoryQuery
GemfireRepositoryQuery
using plain String
based OQL queries.
Constructor and Description |
---|
StringBasedGemfireRepositoryQuery(GemfireQueryMethod queryMethod,
GemfireTemplate template)
Creates a new
StringBasedGemfireRepositoryQuery using the given GemfireQueryMethod and
GemfireTemplate . |
StringBasedGemfireRepositoryQuery(String query,
GemfireQueryMethod queryMethod,
GemfireTemplate template)
Creates a new
StringBasedGemfireRepositoryQuery using the given query String ,
GemfireQueryMethod and GemfireTemplate . |
Modifier and Type | Method and Description |
---|---|
StringBasedGemfireRepositoryQuery |
asUserDefinedQuery()
Sets this
RepositoryQuery to be user-defined. |
Object |
execute(Object[] arguments) |
protected QueryString |
getQuery()
Returns a reference to the
managed query . |
protected GemfireTemplate |
getTemplate()
Returns a reference to the
GemfireTemplate used to perform all data access and query operations. |
boolean |
isUserDefinedQuery()
Determines whether the query represented by this
RepositoryQuery is user-defined or was generated by
the Spring Data Repository infrastructure. |
getQueryMethod, getQueryPostProcessor, register
public StringBasedGemfireRepositoryQuery(GemfireQueryMethod queryMethod, GemfireTemplate template)
StringBasedGemfireRepositoryQuery
using the given GemfireQueryMethod
and
GemfireTemplate
. The actual query String
will be looked up from the query method.queryMethod
- must not be null.template
- must not be null.public StringBasedGemfireRepositoryQuery(String query, GemfireQueryMethod queryMethod, GemfireTemplate template)
StringBasedGemfireRepositoryQuery
using the given query String
,
GemfireQueryMethod
and GemfireTemplate
.query
- will fall back to the query annotated to the given GemfireQueryMethod
if null.queryMethod
- must not be null.template
- must not be null.public StringBasedGemfireRepositoryQuery asUserDefinedQuery()
RepositoryQuery
to be user-defined.RepositoryQuery
.public boolean isUserDefinedQuery()
RepositoryQuery
is user-defined or was generated by
the Spring Data Repository
infrastructure.RepositoryQuery
is user-defined or was generated by
the Spring Data Repository
infrastructure.protected QueryString getQuery()
managed query
.managed query
.QueryString
protected GemfireTemplate getTemplate()
GemfireTemplate
used to perform all data access and query operations.GemfireTemplate
used to perform all data access and query operations.GemfireTemplate
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.