public class TemplateBasedOqlQueryExecutor extends Object implements OqlQueryExecutor
SelectResults
,
GemfireTemplate
,
OqlQueryExecutor
,
QueryMethod
NON_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, wait
newUnsupportedQueryExecutionException, thenExecuteWith
public 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
.GemfireTemplate
public org.apache.geode.cache.query.SelectResults execute(QueryMethod queryMethod, @NonNull String query, @NonNull Object... arguments)
OqlQueryExecutor
OQL query
.execute
in interface OqlQueryExecutor
queryMethod
- 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
,
SelectResults
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.