Class QueryOperationContext
java.lang.Object
org.apache.geode.cache.operations.OperationContext
org.apache.geode.cache.operations.QueryOperationContext
- Direct Known Subclasses:
ExecuteCQOperationContext
Deprecated.
Encapsulates a cache query operation for both the pre-operation and post-operation cases.
- Since:
- GemFire 5.5
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.geode.cache.operations.OperationContext
OperationContext.OperationCode -
Constructor Summary
ConstructorsConstructorDescriptionQueryOperationContext(String queryString, Set regionNames, boolean postOperation) Deprecated.Constructor for the query operation.QueryOperationContext(String queryString, Set regionNames, boolean postOperation, Object[] queryParams) Deprecated.Constructor for the query operation. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Return the operation associated with theOperationContextobject.getQuery()Deprecated.Return the query string of this query operation.Object[]Deprecated.Get the bind parameters for the queryDeprecated.Get the result of the query execution.Deprecated.Get the names of regions that are part of the query string.booleanDeprecated.True if the context is for post-operation.voidmodifyQuery(String query) Deprecated.Modify the query string.voidDeprecated.Set the post-operation flag to true.voidsetQueryResult(Object queryResult) Deprecated.Set the result of query operation.voidsetRegionNames(Set regionNames) Deprecated.Set the names of regions that are part of the query string.Methods inherited from class org.apache.geode.cache.operations.OperationContext
isClientUpdate, isClientUpdate
-
Constructor Details
-
QueryOperationContext
Deprecated.Constructor for the query operation.- Parameters:
queryString- the query string for this operationregionNames- names of regions that are part of the query stringpostOperation- true to set the post-operation flag
-
QueryOperationContext
public QueryOperationContext(String queryString, Set regionNames, boolean postOperation, Object[] queryParams) Deprecated.Constructor for the query operation.- Parameters:
queryString- the query string for this operationregionNames- names of regions that are part of the query stringpostOperation- true to set the post-operation flagqueryParams- the bind parameters for the query
-
-
Method Details
-
getOperationCode
Deprecated.Return the operation associated with theOperationContextobject.- Specified by:
getOperationCodein classOperationContext- Returns:
- the
OperationCodeof this operation
-
isPostOperation
public boolean isPostOperation()Deprecated.True if the context is for post-operation.- Specified by:
isPostOperationin classOperationContext- Returns:
- whether the context is for post-operation
-
setPostOperation
public void setPostOperation()Deprecated.Set the post-operation flag to true. -
getQuery
Deprecated.Return the query string of this query operation.- Returns:
- the query string of this query operation
-
modifyQuery
Deprecated.Modify the query string.- Parameters:
query- the new query string for this query.
-
getRegionNames
Deprecated.Get the names of regions that are part of the query string.- Returns:
- names of regions being queried.
-
setRegionNames
Deprecated.Set the names of regions that are part of the query string.- Parameters:
regionNames- names of regions being queried
-
getQueryResult
Deprecated.Get the result of the query execution.- Returns:
- result of the query.
-
setQueryResult
Deprecated.Set the result of query operation.- Parameters:
queryResult- the new result of the query operation.
-
getQueryParams
Deprecated.Get the bind parameters for the query- Returns:
- bind parameters for the query
-
ResourcePermissioninstead