Class TemplateBasedOqlQueryExecutor
java.lang.Object
org.springframework.data.gemfire.repository.query.support.TemplateBasedOqlQueryExecutor
- All Implemented Interfaces:
OqlQueryExecutor
- Since:
- 2.4.0
- Author:
- John Blum
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.data.gemfire.repository.query.support.OqlQueryExecutor
NON_EXECUTABLE_QUERY_MESSAGE
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateBasedOqlQueryExecutor
(GemfireTemplate template) Constructs a new instance ofTemplateBasedOqlQueryExecutor
initialized with the given, requiredGemfireTemplate
used to execute Apache GeodeOQL queries
. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(QueryMethod queryMethod, String query, Object... arguments) Executes the givenOQL query
.protected GemfireTemplate
Gets the configuredGemfireTemplate
used to execute Apache GeodeOQL queries
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.gemfire.repository.query.support.OqlQueryExecutor
newUnsupportedQueryExecutionException, thenExecuteWith
-
Constructor Details
-
TemplateBasedOqlQueryExecutor
Constructs a new instance ofTemplateBasedOqlQueryExecutor
initialized with the given, requiredGemfireTemplate
used to execute Apache GeodeOQL queries
.- Parameters:
template
-GemfireTemplate
used to execute Apache GeodeOQL queries
; must not be null.- Throws:
IllegalArgumentException
- ifGemfireTemplate
is null.- See Also:
-
-
Method Details
-
getTemplate
Gets the configuredGemfireTemplate
used to execute Apache GeodeOQL queries
.- Returns:
- the configured
GemfireTemplate
used to execute Apache GeodeOQL queries
. - See Also:
-
execute
public SelectResults execute(QueryMethod queryMethod, @NonNull String query, @NonNull Object... arguments) Description copied from interface:OqlQueryExecutor
Executes the givenOQL query
.- Specified by:
execute
in interfaceOqlQueryExecutor
- Parameters:
queryMethod
-QueryMethod
modeling the OQl query.query
-String
containing the Apache Geode OQL query.arguments
- array ofarguments
used for the bind in OQL query parameters.- Returns:
- the
OQL query result set
. - See Also:
-