Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.dynamodbv2.datamodeling
Annotation Type DynamoDBIndexRangeKey


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface DynamoDBIndexRangeKey

Annotation for marking a property in a class as the attribute to be used as range key for one or more local secondary indexes on a DynamoDB table. Applied to the getter for the indexed range key property.

This annotation is required if this attribute will be used as index key for item queries.


Optional Element Summary
 java.lang.String attributeName
          Optional parameter when the name of the attribute as stored in DynamoDB should differ from the name used by the getter / setter.
 java.lang.String localSecondaryIndexName
          Parameter for the name of the local secondary index.
 java.lang.String[] localSecondaryIndexNames
          Parameter for the names of the local secondary indexes.
 

attributeName

public abstract java.lang.String attributeName
Optional parameter when the name of the attribute as stored in DynamoDB should differ from the name used by the getter / setter.

Default:
""

localSecondaryIndexName

public abstract java.lang.String localSecondaryIndexName
Parameter for the name of the local secondary index.

This is required if this attribute is the index key for only one local secondary index.

Default:
""

localSecondaryIndexNames

public abstract java.lang.String[] localSecondaryIndexNames
Parameter for the names of the local secondary indexes. This is required if this attribute is the index key for multiple local secondary indexes.

Default:
{}


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