public class GemfireQueryMethod extends QueryMethod
QueryMethod
.QueryMethod
Modifier and Type | Field and Description |
---|---|
protected static String[] |
EMPTY_STRING_ARRAY |
Constructor and Description |
---|
GemfireQueryMethod(Method method,
RepositoryMetadata metadata,
ProjectionFactory factory,
MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
|
Modifier and Type | Method and Description |
---|---|
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.
|
GemfirePersistentEntity<?> |
getPersistentEntity()
Returns the
GemfirePersistentEntity the method deals with. |
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(Method method, RepositoryMetadata metadata, ProjectionFactory factory, MappingContext<? extends GemfirePersistentEntity<?>,GemfirePersistentProperty> mappingContext)
method
- must not be null.metadata
- must not be null.factory
- must not be null.mappingContext
- must not be null.public GemfirePersistentEntity<?> getPersistentEntity()
GemfirePersistentEntity
the method deals with.GemfirePersistentEntity
the method deals with.public boolean hasAnnotatedQuery()
StringUtils.hasText(String)
,
getAnnotatedQuery()
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–2017 Pivotal Software, Inc.. All rights reserved.