org.springframework.data.gemfire.repository.query
Class StringBasedGemfireRepositoryQuery

java.lang.Object
  extended by 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.


Constructor Summary
StringBasedGemfireRepositoryQuery(GemfireQueryMethod method, GemfireTemplate template)
          Creates a new StringBasedGemfireRepositoryQuery using the given GemfireQueryMethod and GemfireTemplate.
StringBasedGemfireRepositoryQuery(String query, GemfireQueryMethod method, GemfireTemplate template)
          Creates a new StringBasedGemfireRepositoryQuery using the given query String, GemfireQueryMethod and GemfireTemplate.
 
Method Summary
 Object execute(Object[] parameters)
           
 org.springframework.data.repository.query.QueryMethod getQueryMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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