Class GemfireRepositoryQuery
java.lang.Object
org.springframework.data.gemfire.repository.query.GemfireRepositoryQuery
- All Implemented Interfaces:
org.springframework.data.repository.query.RepositoryQuery
- Direct Known Subclasses:
PartTreeGemfireRepositoryQuery
,StringBasedGemfireRepositoryQuery
public abstract class GemfireRepositoryQuery
extends Object
implements org.springframework.data.repository.query.RepositoryQuery
Abstract base class for Apache Geode specific
RepositoryQuery
implementations.- See Also:
-
Repository
RepositoryQuery
GemfireQueryMethod
-
Constructor Summary
ConstructorDescriptionGemfireRepositoryQuery
(GemfireQueryMethod queryMethod) Constructs a new instance ofGemfireRepositoryQuery
initialized with the givenGemfireQueryMethod
implementing theRepository
QueryMethod
. -
Method Summary
Modifier and TypeMethodDescriptionprotected GemfireQueryMethod
Returns a reference to theRepository
GemfireQueryMethod
modeling the Apache Geode OQL query.protected org.slf4j.Logger
Returns the configured SLF4JLogger
used log statements.org.springframework.data.repository.query.QueryMethod
Returns a reference to theRepository
QueryMethod
modeling the data store query.protected QueryPostProcessor<org.springframework.data.repository.Repository,
String> Returns a reference to the composedQueryPostProcessors
that are applied to OQL queries prior to execution.register
(QueryPostProcessor<org.springframework.data.repository.Repository, String> queryPostProcessor) Registers the givenQueryPostProcessor
to use for processing OQL queries generated fromRepository
query methods
.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.repository.query.RepositoryQuery
execute
-
Constructor Details
-
GemfireRepositoryQuery
Constructs a new instance ofGemfireRepositoryQuery
initialized with the givenGemfireQueryMethod
implementing theRepository
QueryMethod
.- Parameters:
queryMethod
-GemfireQueryMethod
capturing the metadata and implementation of theRepository
QueryMethod
; must not be null.- Throws:
IllegalArgumentException
- ifGemfireQueryMethod
is null.- See Also:
-
-
Method Details
-
getGemfireQueryMethod
Returns a reference to theRepository
GemfireQueryMethod
modeling the Apache Geode OQL query.- Returns:
- a reference to the
Repository
GemfireQueryMethod
modeling the Apache Geode OQL query. - See Also:
-
getLogger
@NonNull protected org.slf4j.Logger getLogger()Returns the configured SLF4JLogger
used log statements.- Returns:
- the configured SLF4J
Logger
. - See Also:
-
Logger
-
getQueryMethod
@NonNull public org.springframework.data.repository.query.QueryMethod getQueryMethod()Returns a reference to theRepository
QueryMethod
modeling the data store query.- Specified by:
getQueryMethod
in interfaceorg.springframework.data.repository.query.RepositoryQuery
- Returns:
- a reference to the
Repository
QueryMethod
modeling the data store query. - See Also:
-
QueryMethod
-
getQueryPostProcessor
@NonNull protected QueryPostProcessor<org.springframework.data.repository.Repository,String> getQueryPostProcessor()Returns a reference to the composedQueryPostProcessors
that are applied to OQL queries prior to execution.- Returns:
- a reference to the composed
QueryPostProcessors
. - See Also:
-
register
public GemfireRepositoryQuery register(@Nullable QueryPostProcessor<org.springframework.data.repository.Repository, String> queryPostProcessor) Registers the givenQueryPostProcessor
to use for processing OQL queries generated fromRepository
query methods
. Registration always links the givenQueryPostProcessor
to the end of the processing chain of previously registeredQueryPostProcessors
. In other words, the givenQueryPostProcessor
argument will process OQL queries only after allQueryPostProcessor
registered before it.- Parameters:
queryPostProcessor
-QueryPostProcessor
to register.- Returns:
- this
GemfireRepositoryQuery
. - See Also:
-