static final class DynamoDBMappingsRegistry.Mappings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DynamoDBAnnotationRegistry.AnnotationMap |
annotations |
private java.util.Map<java.lang.reflect.Method,DynamoDBMappingsRegistry.Mapping> |
byGetters |
private java.util.Map<java.lang.String,DynamoDBMappingsRegistry.Mapping> |
byNames |
private DynamoDBMappingsRegistry.Mapping |
hashKey |
private java.lang.Class<?> |
objectType |
private java.util.Collection<DynamoDBMappingsRegistry.Mapping> |
primaryKeys |
private DynamoDBMappingsRegistry.Mapping |
rangeKey |
Modifier | Constructor and Description |
---|---|
private |
Mappings(java.lang.Class<?> clazz,
DynamoDBMappingsRegistry registry)
Constructs a mapping definition for the specified class.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
anyPrimaryKeyAutoGeneratable(java.lang.Object objectValue)
Determnes if any of the primary keys require auto-generation.
|
(package private) DynamoDBMappingsRegistry.Mapping |
getHashKey()
Gets the hash key attribute mapping for this class.
|
(package private) DynamoDBMappingsRegistry.Mapping |
getMapping(java.lang.reflect.Method method)
Gets the attribute mapping for a specific method.
|
(package private) java.util.Collection<DynamoDBMappingsRegistry.Mapping> |
getMappings()
Gets the attribute mappings for this class.
|
(package private) java.lang.Class<?> |
getObjectType()
Gets the object type.
|
(package private) java.util.Collection<DynamoDBMappingsRegistry.Mapping> |
getPrimaryKeys()
Gets the collection of key attributes.
|
(package private) DynamoDBMappingsRegistry.Mapping |
getRangeKey()
Gets the range key attribute mapping for this class.
|
(package private) java.lang.String |
getTableName()
Gets the table name; does not account for any overrides.
|
(package private) boolean |
hasHashKey()
Determines if the mapping has a hash key attribute.
|
(package private) boolean |
hasRangeKey()
Determines if the mapping has a range key attribute.
|
(package private) boolean |
isDocument()
Determines if this is a document type.
|
private final java.lang.Class<?> objectType
private final DynamoDBAnnotationRegistry.AnnotationMap annotations
private final java.util.Map<java.lang.String,DynamoDBMappingsRegistry.Mapping> byNames
private final java.util.Map<java.lang.reflect.Method,DynamoDBMappingsRegistry.Mapping> byGetters
private final java.util.Collection<DynamoDBMappingsRegistry.Mapping> primaryKeys
private DynamoDBMappingsRegistry.Mapping hashKey
private DynamoDBMappingsRegistry.Mapping rangeKey
private Mappings(java.lang.Class<?> clazz, DynamoDBMappingsRegistry registry)
clazz
- The class.registry
- The mappings registry.final java.lang.Class<?> getObjectType()
final java.util.Collection<DynamoDBMappingsRegistry.Mapping> getMappings()
final DynamoDBMappingsRegistry.Mapping getMapping(java.lang.reflect.Method method)
method
- The method.final java.util.Collection<DynamoDBMappingsRegistry.Mapping> getPrimaryKeys()
final boolean hasHashKey()
final DynamoDBMappingsRegistry.Mapping getHashKey()
final boolean hasRangeKey()
final DynamoDBMappingsRegistry.Mapping getRangeKey()
final boolean isDocument()
final java.lang.String getTableName()
final boolean anyPrimaryKeyAutoGeneratable(java.lang.Object objectValue)
objectValue
- The object to evaluate.