public class TemplateBasedOqlQueryExecutor extends Object implements OqlQueryExecutor
SelectResults,
GemfireTemplate,
OqlQueryExecutor,
QueryMethodNON_EXECUTABLE_QUERY_MESSAGE| Constructor and Description |
|---|
TemplateBasedOqlQueryExecutor(GemfireTemplate template)
Constructs a new instance of
TemplateBasedOqlQueryExecutor initialized with the given,
required GemfireTemplate used to execute Apache Geode OQL queries. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.geode.cache.query.SelectResults |
execute(QueryMethod queryMethod,
String query,
Object... arguments)
Executes the given
OQL query. |
protected GemfireTemplate |
getTemplate()
Gets the configured
GemfireTemplate used to execute Apache Geode OQL queries. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewUnsupportedQueryExecutionException, thenExecuteWithpublic TemplateBasedOqlQueryExecutor(@NonNull GemfireTemplate template)
TemplateBasedOqlQueryExecutor initialized with the given,
required GemfireTemplate used to execute Apache Geode OQL queries.template - GemfireTemplate used to execute Apache Geode OQL queries;
must not be null.IllegalArgumentException - if GemfireTemplate is null.GemfireTemplate@NonNull protected GemfireTemplate getTemplate()
GemfireTemplate used to execute Apache Geode OQL queries.GemfireTemplate used to execute Apache Geode OQL queries.GemfireTemplatepublic org.apache.geode.cache.query.SelectResults execute(QueryMethod queryMethod, @NonNull String query, @NonNull Object... arguments)
OqlQueryExecutorOQL query.execute in interface OqlQueryExecutorqueryMethod - QueryMethod modeling the OQl query.query - String containing the Apache Geode OQL query.arguments - array of arguments used for the bind in OQL query parameters.OQL query result set.QueryMethod,
SelectResultsCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.