public abstract class GemfireRepositoryQuery extends Object implements RepositoryQuery
RepositoryQuery
implementations.Repository
,
RepositoryQuery
,
GemfireQueryMethod
Constructor and Description |
---|
GemfireRepositoryQuery(GemfireQueryMethod queryMethod)
Constructs a new instance of
GemfireRepositoryQuery initialized with
the given GemfireQueryMethod implementing the Repository QueryMethod . |
Modifier and Type | Method and Description |
---|---|
protected GemfireQueryMethod |
getGemfireQueryMethod()
Returns a reference to the
Repository GemfireQueryMethod modeling the Apache Geode OQL query. |
protected org.slf4j.Logger |
getLogger()
Returns the configured SLF4J
Logger used log statements. |
QueryMethod |
getQueryMethod()
Returns a reference to the
Repository QueryMethod modeling the data store query. |
protected QueryPostProcessor<Repository,String> |
getQueryPostProcessor()
Returns a reference to the composed
QueryPostProcessors that are applied to
OQL queries prior to execution. |
GemfireRepositoryQuery |
register(QueryPostProcessor<Repository,String> queryPostProcessor)
Registers the given
QueryPostProcessor to use for processing OQL queries
generated from Repository query methods . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public GemfireRepositoryQuery(GemfireQueryMethod queryMethod)
GemfireRepositoryQuery
initialized with
the given GemfireQueryMethod
implementing the Repository
QueryMethod
.queryMethod
- GemfireQueryMethod
capturing the metadata and implementation of the Repository
QueryMethod
; must not be null.IllegalArgumentException
- if GemfireQueryMethod
is null.GemfireQueryMethod
@NonNull protected GemfireQueryMethod getGemfireQueryMethod()
Repository
GemfireQueryMethod
modeling the Apache Geode OQL query.Repository
GemfireQueryMethod
modeling the Apache Geode OQL query.GemfireQueryMethod
,
getQueryMethod()
@NonNull protected org.slf4j.Logger getLogger()
Logger
used log statements.Logger
.Logger
@NonNull public QueryMethod getQueryMethod()
Repository
QueryMethod
modeling the data store query.getQueryMethod
in interface RepositoryQuery
Repository
QueryMethod
modeling the data store query.QueryMethod
@NonNull protected QueryPostProcessor<Repository,String> getQueryPostProcessor()
QueryPostProcessors
that are applied to
OQL queries prior to execution.QueryPostProcessors
.QueryPostProcessor
public GemfireRepositoryQuery register(@Nullable QueryPostProcessor<Repository,String> queryPostProcessor)
QueryPostProcessor
to use for processing OQL queries
generated from Repository
query methods
.
Registration always links the given QueryPostProcessor
to the end of the processing chain
of previously registered QueryPostProcessors
. In other words, the given
QueryPostProcessor
argument will process OQL queries only after all
QueryPostProcessor
registered before it.queryPostProcessor
- QueryPostProcessor
to register.GemfireRepositoryQuery
.QueryPostProcessor.processBefore(QueryPostProcessor)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.