org.springframework.data.gemfire.repository.query
Class StringBasedGemfireRepositoryQuery
java.lang.Object
org.springframework.data.gemfire.repository.query.StringBasedGemfireRepositoryQuery
- All Implemented Interfaces:
- org.springframework.data.repository.query.RepositoryQuery
public class StringBasedGemfireRepositoryQuery
- extends Object
GemfireRepositoryQuery
using plain String
based OQL queries.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringBasedGemfireRepositoryQuery
public StringBasedGemfireRepositoryQuery(GemfireQueryMethod method,
GemfireTemplate template)
- Creates a new
StringBasedGemfireRepositoryQuery
using the given GemfireQueryMethod
and
GemfireTemplate
. The actual query String
will be looked up from the query method.
- Parameters:
method
- must not be null.template
- must not be null.
StringBasedGemfireRepositoryQuery
public StringBasedGemfireRepositoryQuery(String query,
GemfireQueryMethod method,
GemfireTemplate template)
- Creates a new
StringBasedGemfireRepositoryQuery
using the given query String
,
GemfireQueryMethod
and GemfireTemplate
.
- Parameters:
query
- will fall back to the query annotated to the given GemfireQueryMethod
if null is
given.method
- must not be null.template
- must not be null.
execute
public Object execute(Object[] parameters)
getQueryMethod
public org.springframework.data.repository.query.QueryMethod getQueryMethod()
- Specified by:
getQueryMethod
in interface org.springframework.data.repository.query.RepositoryQuery