static final class DynamoDBAnnotationRegistry.AnnotationMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
annotations
Map of annotation type to annotation instance.
|
Modifier | Constructor and Description |
---|---|
private |
AnnotationMap()
Constructs an instance of
AnnotationMap . |
Modifier and Type | Method and Description |
---|---|
private <T extends java.lang.annotation.Annotation> |
annotationOf(java.lang.Class<T> clazz)
Gets the annotation of the specified type.
|
private java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> |
getAnnotations()
Gets the annotations.
|
(package private) java.lang.String |
getAttributeName()
Gets the attribute name defaulting if required.
|
(package private) DynamoDBAutoGenerateStrategy |
getAutoGenerateStrategy()
Gets the auto-generate strategy.
|
(package private) java.util.Collection<java.lang.String> |
getGlobalSecondaryIndexNamesOfIndexHashKey()
Gets the global secondary index names if applicable.
|
(package private) java.util.Collection<java.lang.String> |
getGlobalSecondaryIndexNamesOfIndexRangeKey()
Gets the global secondary index names if applicable.
|
(package private) java.util.Collection<java.lang.String> |
getLocalSecondaryIndexNamesOfIndexRangeKey()
Gets the local secondary index names if applicable.
|
(package private) java.lang.Class<? extends DynamoDBMarshaller<?>> |
getMarshallerClass()
Gets the marshaller class.
|
(package private) java.lang.String |
getTableName()
Gets the table name.
|
(package private) boolean |
isAttribute()
Determines if the
DynamoDBAttribute is present. |
(package private) boolean |
isAutoGeneratedKey()
Determines if the
DynamoDBAutoGeneratedKey is present. |
(package private) boolean |
isAutoGeneratedTimestamp()
Determines if the
DynamoDBAutoGeneratedTimestamp is present. |
(package private) boolean |
isDocument()
Determines if the
DynamoDBDocument is present. |
(package private) boolean |
isHashKey()
Determines if the
DynamoDBHashKey is present. |
(package private) boolean |
isIgnore()
Determines if the
DynamoDBIgnore is present. |
(package private) boolean |
isIndexHashKey()
Determines if the
DynamoDBIndexHashKey is present. |
(package private) boolean |
isIndexRangeKey()
Determines if the
DynamoDBIndexRangeKey is present. |
(package private) boolean |
isMarshalling()
Determines if the
DynamoDBMarshalling is present. |
(package private) boolean |
isNativeBoolean()
Determines if the
DynamoDBNativeBoolean is present. |
(package private) boolean |
isRangeKey()
Determines if the
DynamoDBRangeKey is present. |
(package private) boolean |
isTable()
Determines if the
DynamoDBTable is present. |
(package private) boolean |
isVersion()
Determines if the
DynamoDBVersionAttribute is present. |
private void |
putAll(java.lang.annotation.Annotation[] annotations)
Put all the DynamoDB annotations.
|
private void |
removeInvalidAnnotations()
Removes any conflicting annotations.
|
private static java.util.Collection<java.lang.String> |
resolveIndexNames(java.lang.annotation.Annotation annotation,
java.lang.String name,
java.lang.String[] names)
Resolves between which name/names to use.
|
private final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> annotations
private final java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.lang.annotation.Annotation> getAnnotations()
private final void putAll(java.lang.annotation.Annotation[] annotations)
annotations
- The array of annotations.private final void removeInvalidAnnotations()
private final <T extends java.lang.annotation.Annotation> T annotationOf(java.lang.Class<T> clazz)
clazz
- The annotation type.final boolean isAttribute()
DynamoDBAttribute
is present.final boolean isAutoGeneratedKey()
DynamoDBAutoGeneratedKey
is present.final boolean isAutoGeneratedTimestamp()
DynamoDBAutoGeneratedTimestamp
is present.final boolean isDocument()
DynamoDBDocument
is present.final boolean isHashKey()
DynamoDBHashKey
is present.final boolean isIgnore()
DynamoDBIgnore
is present.final boolean isIndexHashKey()
DynamoDBIndexHashKey
is present.final boolean isIndexRangeKey()
DynamoDBIndexRangeKey
is present.final boolean isMarshalling()
DynamoDBMarshalling
is present.final boolean isNativeBoolean()
DynamoDBNativeBoolean
is present.final boolean isRangeKey()
DynamoDBRangeKey
is present.final boolean isTable()
DynamoDBTable
is present.final boolean isVersion()
DynamoDBVersionAttribute
is present.final java.lang.String getAttributeName()
final java.util.Collection<java.lang.String> getGlobalSecondaryIndexNamesOfIndexHashKey()
final java.util.Collection<java.lang.String> getGlobalSecondaryIndexNamesOfIndexRangeKey()
final java.util.Collection<java.lang.String> getLocalSecondaryIndexNamesOfIndexRangeKey()
final DynamoDBAutoGenerateStrategy getAutoGenerateStrategy()
final java.lang.Class<? extends DynamoDBMarshaller<?>> getMarshallerClass()
final java.lang.String getTableName()
private static final java.util.Collection<java.lang.String> resolveIndexNames(java.lang.annotation.Annotation annotation, java.lang.String name, java.lang.String[] names)
annotation
- The annotation.name
- The singular name.names
- The multiple names.