VMware GemFire Java API Reference
Class QueryOperationContext
- java.lang.Object
-
- org.apache.geode.cache.operations.OperationContext
-
- org.apache.geode.cache.operations.QueryOperationContext
-
- Direct Known Subclasses:
ExecuteCQOperationContext
@Deprecated public class QueryOperationContext extends OperationContext
Deprecated.since Geode1.0, useResourcePermissioninsteadEncapsulates 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
Constructors Constructor Description QueryOperationContext(java.lang.String queryString, java.util.Set regionNames, boolean postOperation)Deprecated.Constructor for the query operation.QueryOperationContext(java.lang.String queryString, java.util.Set regionNames, boolean postOperation, java.lang.Object[] queryParams)Deprecated.Constructor for the query operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OperationContext.OperationCodegetOperationCode()Deprecated.Return the operation associated with theOperationContextobject.java.lang.StringgetQuery()Deprecated.Return the query string of this query operation.java.lang.Object[]getQueryParams()Deprecated.Get the bind parameters for the queryjava.lang.ObjectgetQueryResult()Deprecated.Get the result of the query execution.java.util.SetgetRegionNames()Deprecated.Get the names of regions that are part of the query string.booleanisPostOperation()Deprecated.True if the context is for post-operation.voidmodifyQuery(java.lang.String query)Deprecated.Modify the query string.voidsetPostOperation()Deprecated.Set the post-operation flag to true.voidsetQueryResult(java.lang.Object queryResult)Deprecated.Set the result of query operation.voidsetRegionNames(java.util.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 Detail
-
QueryOperationContext
public QueryOperationContext(java.lang.String queryString, java.util.Set regionNames, boolean postOperation)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(java.lang.String queryString, java.util.Set regionNames, boolean postOperation, java.lang.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 Detail
-
getOperationCode
public OperationContext.OperationCode 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
public java.lang.String getQuery()
Deprecated.Return the query string of this query operation.- Returns:
- the query string of this query operation
-
modifyQuery
public void modifyQuery(java.lang.String query)
Deprecated.Modify the query string.- Parameters:
query- the new query string for this query.
-
getRegionNames
public java.util.Set getRegionNames()
Deprecated.Get the names of regions that are part of the query string.- Returns:
- names of regions being queried.
-
setRegionNames
public void setRegionNames(java.util.Set regionNames)
Deprecated.Set the names of regions that are part of the query string.- Parameters:
regionNames- names of regions being queried
-
getQueryResult
public java.lang.Object getQueryResult()
Deprecated.Get the result of the query execution.- Returns:
- result of the query.
-
setQueryResult
public void setQueryResult(java.lang.Object queryResult)
Deprecated.Set the result of query operation.- Parameters:
queryResult- the new result of the query operation.
-
getQueryParams
public java.lang.Object[] getQueryParams()
Deprecated.Get the bind parameters for the query- Returns:
- bind parameters for the query
-
-