com.amazonaws.services.dynamodbv2.datamodeling
Class DynamoDBQueryExpression<T>

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBQueryExpression<T>

Deprecated. These classes have been deprecated, please use the classes in the com.amazonaws.mobileconnectors namespace.

public class DynamoDBQueryExpression<T>
extends java.lang.Object

A query expression


Constructor Summary
DynamoDBQueryExpression()
          Deprecated.  
 
Method Summary
 java.lang.String getConditionalOperator()
          Deprecated. Returns the logical operator on the query filter conditions.
 java.util.Map<java.lang.String,AttributeValue> getExclusiveStartKey()
          Deprecated. Returns the exclusive start key for this query.
 T getHashKeyValues()
          Deprecated. Gets the hash key value(s) for this query.
 java.lang.String getIndexName()
          Deprecated. Returns the name of the index used by this query.
 java.lang.Integer getLimit()
          Deprecated. Returns the limit of items to return from this query.
 java.util.Map<java.lang.String,Condition> getQueryFilter()
          Deprecated. Returns the query filter applied on this query.
 java.util.Map<java.lang.String,Condition> getRangeKeyConditions()
          Deprecated. Gets the range key condition for this query.
 boolean isConsistentRead()
          Deprecated. Returns whether this query uses consistent reads
 boolean isScanIndexForward()
          Deprecated. Returns whether this query scans forward.
 void setConditionalOperator(ConditionalOperator conditionalOperator)
          Deprecated. Sets the logical operator on the query filter conditions.
 void setConditionalOperator(java.lang.String conditionalOperator)
          Deprecated. Sets the logical operator on the query filter conditions.
 void setConsistentRead(boolean consistentRead)
          Deprecated. Sets whether this query uses consistent reads.
 void setExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
          Deprecated. Sets the exclusive start key for this query.
 void setHashKeyValues(T hashKeyValues)
          Deprecated. Sets the hash key value(s) for this query.
 void setIndexName(java.lang.String indexName)
          Deprecated. Sets the name of the index to be used by this query.
 void setLimit(java.lang.Integer limit)
          Deprecated. Sets the limit of items to return from this query.
 void setQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
          Deprecated. Sets the query filter applied on this query.
 void setRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
          Deprecated. Sets the range key condition for this query.
 void setScanIndexForward(boolean scanIndexForward)
          Deprecated. Sets whether this query scans forward.
 DynamoDBQueryExpression<T> withConditionalOperator(ConditionalOperator conditionalOperator)
          Deprecated. Sets the logical operator on the query filter conditions.
 DynamoDBQueryExpression<T> withConditionalOperator(java.lang.String conditionalOperator)
          Deprecated. Sets the logical operator on the query filter conditions.
 DynamoDBQueryExpression<T> withConsistentRead(boolean consistentRead)
          Deprecated. Sets whether this query uses consistent reads and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression<T> withExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
          Deprecated. Sets the exclusive start key for this query and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression<T> withHashKeyValues(T hashKObject)
          Deprecated. Sets the hash key value(s) for this query.
 DynamoDBQueryExpression<T> withIndexName(java.lang.String indexName)
          Deprecated. Sets the name of the index to be used by this query.
 DynamoDBQueryExpression<T> withLimit(java.lang.Integer limit)
          Deprecated. Sets the limit of items to return from this query and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression<T> withQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
          Deprecated. Sets the query filter applied on this query.
 DynamoDBQueryExpression<T> withQueryFilterEntry(java.lang.String attributeName, Condition condition)
          Deprecated. Adds a new condition to the the query filter.
 DynamoDBQueryExpression<T> withRangeKeyCondition(java.lang.String rangeKeyAttributeName, Condition rangeKeyCondition)
          Deprecated. Sets one range key condition for this query, using the attribute name of the range key.
 DynamoDBQueryExpression<T> withRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
          Deprecated. Sets the range key condition for this query.
 DynamoDBQueryExpression<T> withScanIndexForward(boolean scanIndexForward)
          Deprecated. Sets whether this query scans forward and returns a pointer to this object for method-chaining.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamoDBQueryExpression

public DynamoDBQueryExpression()
Deprecated. 
Method Detail

isConsistentRead

public boolean isConsistentRead()
Deprecated. 
Returns whether this query uses consistent reads


setConsistentRead

public void setConsistentRead(boolean consistentRead)
Deprecated. 
Sets whether this query uses consistent reads.


withConsistentRead

public DynamoDBQueryExpression<T> withConsistentRead(boolean consistentRead)
Deprecated. 
Sets whether this query uses consistent reads and returns a pointer to this object for method-chaining.


isScanIndexForward

public boolean isScanIndexForward()
Deprecated. 
Returns whether this query scans forward.


setScanIndexForward

public void setScanIndexForward(boolean scanIndexForward)
Deprecated. 
Sets whether this query scans forward.


withScanIndexForward

public DynamoDBQueryExpression<T> withScanIndexForward(boolean scanIndexForward)
Deprecated. 
Sets whether this query scans forward and returns a pointer to this object for method-chaining.


getExclusiveStartKey

public java.util.Map<java.lang.String,AttributeValue> getExclusiveStartKey()
Deprecated. 
Returns the exclusive start key for this query.


setExclusiveStartKey

public void setExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
Deprecated. 
Sets the exclusive start key for this query.


withExclusiveStartKey

public DynamoDBQueryExpression<T> withExclusiveStartKey(java.util.Map<java.lang.String,AttributeValue> exclusiveStartKey)
Deprecated. 
Sets the exclusive start key for this query and returns a pointer to this object for method-chaining.


getLimit

public java.lang.Integer getLimit()
Deprecated. 
Returns the limit of items to return from this query.


setLimit

public void setLimit(java.lang.Integer limit)
Deprecated. 
Sets the limit of items to return from this query.


withLimit

public DynamoDBQueryExpression<T> withLimit(java.lang.Integer limit)
Deprecated. 
Sets the limit of items to return from this query and returns a pointer to this object for method-chaining.


getHashKeyValues

public T getHashKeyValues()
Deprecated. 
Gets the hash key value(s) for this query. All hash key attributes for the table must be specified with this key object.


setHashKeyValues

public void setHashKeyValues(T hashKeyValues)
Deprecated. 
Sets the hash key value(s) for this query. All hash key attributes for the table must be specified with this key object. Note 1: Currently the DynamoDBMapper supports only one value per hash key. Note 2: Currently the Amazon DynamoDB supports only one hash key per table.


withHashKeyValues

public DynamoDBQueryExpression<T> withHashKeyValues(T hashKObject)
Deprecated. 
Sets the hash key value(s) for this query. All hash key attributes for the table must be specified with this key object.


getRangeKeyConditions

public java.util.Map<java.lang.String,Condition> getRangeKeyConditions()
Deprecated. 
Gets the range key condition for this query. All range key attributes for the table must be specified by attribute name in the map.


setRangeKeyConditions

public void setRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
Deprecated. 
Sets the range key condition for this query. All range key attributes for the table must be specified by attribute name in the map.

Parameters:
rangeKeyConditions - NOTE: The current DynamoDB service only allows up to one range key condition per query. Providing more than one range key conditions will result in an AmazonClientException

withRangeKeyConditions

public DynamoDBQueryExpression<T> withRangeKeyConditions(java.util.Map<java.lang.String,Condition> rangeKeyConditions)
Deprecated. 
Sets the range key condition for this query. All range key attributes for the table must be specified by attribute name in the map.

Parameters:
rangeKeyConditions - NOTE: The current DynamoDB service only allows up to one range key condition per query. Providing more than one range key conditions will result in an AmazonClientException

withRangeKeyCondition

public DynamoDBQueryExpression<T> withRangeKeyCondition(java.lang.String rangeKeyAttributeName,
                                                        Condition rangeKeyCondition)
Deprecated. 
Sets one range key condition for this query, using the attribute name of the range key. All range key attributes for the table must be specified by using DynamoDBRangeKey or DynamoDBIndexRangeKey annotations before executing the query.
If the attribute is the primary range key
users should NOT set any index name for this query.
If the attribute is an index range key
DynamoDBMapper will automatically set the index name if the range key is annotated as only used by one local secondary index, otherwise users must set the index name manually by either setIndexName(String) or withIndexName(String).

Parameters:
rangeKeyAttributeName - This could be either the primary range key of the table, or an index range key.
rangeKeyCondition - Condition specified on the given range key for this query.

getIndexName

public java.lang.String getIndexName()
Deprecated. 
Returns the name of the index used by this query.


setIndexName

public void setIndexName(java.lang.String indexName)
Deprecated. 
Sets the name of the index to be used by this query. All index names must be specified by using DynamoDBIndexRangeKey annotation on the getter method of the corresponding index range key before executing the query.


withIndexName

public DynamoDBQueryExpression<T> withIndexName(java.lang.String indexName)
Deprecated. 
Sets the name of the index to be used by this query. All index names must be specified by using DynamoDBIndexRangeKey annotation on the getter method of the corresponding index range key before executing the query.

Returns a pointer to this object for method-chaining.


getQueryFilter

public java.util.Map<java.lang.String,Condition> getQueryFilter()
Deprecated. 
Returns the query filter applied on this query.


setQueryFilter

public void setQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
Deprecated. 
Sets the query filter applied on this query.


withQueryFilter

public DynamoDBQueryExpression<T> withQueryFilter(java.util.Map<java.lang.String,Condition> queryFilter)
Deprecated. 
Sets the query filter applied on this query.

Returns a pointer to this object for method-chaining.


withQueryFilterEntry

public DynamoDBQueryExpression<T> withQueryFilterEntry(java.lang.String attributeName,
                                                       Condition condition)
Deprecated. 
Adds a new condition to the the query filter.

Returns a pointer to this object for method-chaining.

Parameters:
attributeName - The name of the attribute on which the specified condition operates.
condition - The filter condition applied on the attribute.

getConditionalOperator

public java.lang.String getConditionalOperator()
Deprecated. 
Returns the logical operator on the query filter conditions.


setConditionalOperator

public void setConditionalOperator(java.lang.String conditionalOperator)
Deprecated. 
Sets the logical operator on the query filter conditions.


withConditionalOperator

public DynamoDBQueryExpression<T> withConditionalOperator(java.lang.String conditionalOperator)
Deprecated. 
Sets the logical operator on the query filter conditions.

Returns a pointer to this object for method-chaining.


setConditionalOperator

public void setConditionalOperator(ConditionalOperator conditionalOperator)
Deprecated. 
Sets the logical operator on the query filter conditions.


withConditionalOperator

public DynamoDBQueryExpression<T> withConditionalOperator(ConditionalOperator conditionalOperator)
Deprecated. 
Sets the logical operator on the query filter conditions.

Returns a pointer to this object for method-chaining.



Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.