|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface DynamoDBIndexHashKey
Annotation for marking a property in a class as the attribute to be used as the hash key for one or more global secondary indexes on a DynamoDB table. Applied to the getter method or the class field for the index hash key property. If the annotation is applied directly to the class field, the corresponding getter and setter must be declared in the same class.
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 |
globalSecondaryIndexName
Parameter for the name of the global secondary index. |
java.lang.String[] |
globalSecondaryIndexNames
Parameter for the names of the global secondary indexes. |
public abstract java.lang.String attributeName
public abstract java.lang.String globalSecondaryIndexName
This is required if this attribute is the index key for only one global secondary index.
public abstract java.lang.String[] globalSecondaryIndexNames
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |