public class GemfireQueryMethod extends QueryMethod
QueryMethod
implementation for Apache Geode.Method
,
Query
,
Repository
,
QueryMethod
Modifier and Type | Field and Description |
---|---|
protected static String[] |
EMPTY_STRING_ARRAY |
Constructor and Description |
---|
GemfireQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory projectionFactory,
MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
|
GemfireQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory projectionFactory,
MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext,
QueryMethodEvaluationContextProvider evaluationContextProvider)
|
Modifier and Type | Method and Description |
---|---|
String |
getAnnotatedQuery()
Returns the
Query annotated OQL query value for this QueryMethod if present. |
String[] |
getHints()
Gets the query HINTs for this query method.
|
String |
getImport()
Gets the IMPORT statement for this query method.
|
int |
getLimit()
Gets the LIMIT for this query method on the result set returned by the query.
|
protected Method |
getMethod()
Returns the
Method reference on which this QueryMethod is based. |
GemfirePersistentEntity<?> |
getPersistentEntity()
Returns the
GemfirePersistentEntity handled by this QueryMethod . |
boolean |
hasAnnotatedQuery()
Determines whether this query method specifies an annotated, non-empty query.
|
boolean |
hasHint()
Determines whether this query method uses a query HINT to tell the GemFire OQL query engine which indexes
to apply to the query execution.
|
boolean |
hasImport()
Determine whether this query method declares an IMPORT statement to qualify application domain object types
referenced in the query.
|
boolean |
hasLimit()
Determines whether this query method defines a LIMIT on the number of results returned by the query.
|
boolean |
hasTrace()
Determines whether this query method has TRACE (i.e. logging) enabled.
|
createParameters, getDomainClass, getEntityInformation, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toString
protected static final String[] EMPTY_STRING_ARRAY
public GemfireQueryMethod(@NonNull Method method, @NonNull RepositoryMetadata metadata, @NonNull ProjectionFactory projectionFactory, @NonNull MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
method
- Method
object backing the actual query for this QueryMethod
;
must not be null.metadata
- RepositoryMetadata
containing metadata about the Repository
to which this QueryMethod
belongs; must not be null.projectionFactory
- ProjectionFactory
used to handle the query projection;
must not be null.mappingContext
- MappingContext
used to map entities
to Apache Geode and back to
entities
; must not be null.GemfireQueryMethod(Method, RepositoryMetadata, ProjectionFactory, MappingContext, QueryMethodEvaluationContextProvider)
,
RepositoryMetadata
,
ProjectionFactory
,
MappingContext
,
Method
public GemfireQueryMethod(@NonNull Method method, @NonNull RepositoryMetadata metadata, @NonNull ProjectionFactory projectionFactory, @NonNull MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext, @Nullable QueryMethodEvaluationContextProvider evaluationContextProvider)
method
- Method
object backing the actual query for this QueryMethod
;
must not be null.metadata
- RepositoryMetadata
containing metadata about the Repository
to which this QueryMethod
belongs; must not be null.projectionFactory
- ProjectionFactory
used to handle the query projection;
must not be null.mappingContext
- MappingContext
used to map entities
to Apache Geode and back to
entities
; must not be null.evaluationContextProvider
- QueryMethodEvaluationContextProvider
used to process SpEL
expressions.QueryMethodEvaluationContextProvider
,
RepositoryMetadata
,
ProjectionFactory
,
MappingContext
,
Method
@NonNull protected Method getMethod()
Method
reference on which this QueryMethod
is based.Method
reference on which this QueryMethod
is based.Method
@NonNull public GemfirePersistentEntity<?> getPersistentEntity()
GemfirePersistentEntity
handled by this QueryMethod
.GemfirePersistentEntity
handled by this QueryMethod
.GemfirePersistentEntity
public boolean hasAnnotatedQuery()
StringUtils.hasText(String)
,
getAnnotatedQuery()
@Nullable public String getAnnotatedQuery()
Query
annotated OQL query value for this QueryMethod
if present.Query
annotated OQL query value or null in case it's null, empty
or not present.Query
,
Method.getAnnotation(Class)
public boolean hasHint()
Hint
,
AccessibleObject.isAnnotationPresent(Class)
public String[] getHints()
Hint
,
Method.getAnnotation(Class)
public boolean hasImport()
Import
,
AccessibleObject.isAnnotationPresent(Class)
public String getImport()
Import
,
Method.getAnnotation(Class)
public boolean hasLimit()
Limit
,
AccessibleObject.isAnnotationPresent(Class)
public int getLimit()
Limit
,
Method.getAnnotation(Class)
public boolean hasTrace()
Limit
,
AccessibleObject.isAnnotationPresent(Class)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.