com.amazonaws.services.dynamodb.datamodeling
Class DynamoDBQueryExpression

java.lang.Object
  extended by com.amazonaws.services.dynamodb.datamodeling.DynamoDBQueryExpression

public class DynamoDBQueryExpression
extends Object

A query expression


Constructor Summary
DynamoDBQueryExpression(AttributeValue hashKeyValue)
           
 
Method Summary
 Key getExclusiveStartKey()
          Returns the exclusive start key for this query.
 AttributeValue getHashKeyValue()
          Returns the hash key value to match.
 Integer getLimit()
          Returns the limit of items to return from this query.
 Condition getRangeKeyCondition()
          Returns the range key condition for this query.
 boolean isConsistentRead()
          Returns whether this query uses consistent reads
 boolean isScanIndexForward()
          Returns whether this query scans forward.
 void setConsistentRead(boolean consistentRead)
          Sets whether this query uses consistent reads.
 void setExclusiveStartKey(Key exclusiveStartKey)
          Sets the exclusive start key for this query.
 void setHashKeyValue(AttributeValue hashKeyValue)
          Sets the hash key value for this query to match.
 void setLimit(Integer limit)
          Sets the limit of items to return from this query.
 void setRangeKeyCondition(Condition rangeKeyCondition)
          Sets the range key condition for this query.
 void setScanIndexForward(boolean scanIndexForward)
          Sets whether this query scans forward.
 DynamoDBQueryExpression withConsistentRead(boolean consistentRead)
          Sets whether this query uses consistent reads and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression withExclusiveStartKey(Key exclusiveStartKey)
          Sets the exclusive start key for this query and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression withHashKeyValue(AttributeValue hashKeyValue)
          Sets the hash key value for this query to match and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression withLimit(Integer limit)
          Sets the limit of items to return from this query and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression withRangeKeyCondition(Condition rangeKeyCondition)
          Sets the range key condition for this query and returns a pointer to this object for method-chaining.
 DynamoDBQueryExpression withScanIndexForward(boolean scanIndexForward)
          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(AttributeValue hashKeyValue)
Method Detail

isConsistentRead

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


setConsistentRead

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


withConsistentRead

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


isScanIndexForward

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


setScanIndexForward

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


withScanIndexForward

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


getHashKeyValue

public AttributeValue getHashKeyValue()
Returns the hash key value to match.


setHashKeyValue

public void setHashKeyValue(AttributeValue hashKeyValue)
Sets the hash key value for this query to match.


withHashKeyValue

public DynamoDBQueryExpression withHashKeyValue(AttributeValue hashKeyValue)
Sets the hash key value for this query to match and returns a pointer to this object for method-chaining.


getRangeKeyCondition

public Condition getRangeKeyCondition()
Returns the range key condition for this query.


setRangeKeyCondition

public void setRangeKeyCondition(Condition rangeKeyCondition)
Sets the range key condition for this query.


withRangeKeyCondition

public DynamoDBQueryExpression withRangeKeyCondition(Condition rangeKeyCondition)
Sets the range key condition for this query and returns a pointer to this object for method-chaining.


getExclusiveStartKey

public Key getExclusiveStartKey()
Returns the exclusive start key for this query.


setExclusiveStartKey

public void setExclusiveStartKey(Key exclusiveStartKey)
Sets the exclusive start key for this query.


withExclusiveStartKey

public DynamoDBQueryExpression withExclusiveStartKey(Key exclusiveStartKey)
Sets the exclusive start key for this query and returns a pointer to this object for method-chaining.


getLimit

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


setLimit

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


withLimit

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



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