class DynamoDBTableSchemaParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DynamoDBTableSchemaParser.TableIndexesInfo
This class contains all the information about a table's index schema
parsed from a table POJO class.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.Class<?>,DynamoDBTableSchemaParser.TableIndexesInfo> |
tableIndexesInfoCache |
Constructor and Description |
---|
DynamoDBTableSchemaParser() |
Modifier and Type | Method and Description |
---|---|
private static AttributeDefinition |
getKeyAttributeDefinition(java.lang.reflect.Method keyGetter,
ItemConverter converter) |
(package private) DynamoDBTableSchemaParser.TableIndexesInfo |
parseTableIndexes(java.lang.Class<?> clazz,
DynamoDBMappingsRegistry registry) |
(package private) CreateTableRequest |
parseTablePojoToCreateTableRequest(java.lang.Class<?> clazz,
DynamoDBMapperConfig config,
DynamoDBMappingsRegistry registry,
ItemConverter converter)
Parse the given POJO class and return the CreateTableRequest for the
DynamoDB table it represents.
|
(package private) DeleteTableRequest |
parseTablePojoToDeleteTableRequest(java.lang.Class<?> clazz,
DynamoDBMapperConfig config)
Parse the given POJO class and return the DeleteTableRequest for the DynamoDB table it
represents.
|
private static void |
putAfterCheckConflict(java.util.Map<java.lang.String,AttributeDefinition> map,
AttributeDefinition attrDefinition) |
private final java.util.Map<java.lang.Class<?>,DynamoDBTableSchemaParser.TableIndexesInfo> tableIndexesInfoCache
CreateTableRequest parseTablePojoToCreateTableRequest(java.lang.Class<?> clazz, DynamoDBMapperConfig config, DynamoDBMappingsRegistry registry, ItemConverter converter)
clazz
- The POJO class.config
- The DynamoDBMapperConfig which contains the TableNameOverrides
parameter used to determine the table name.registry
- The DynamoDBMappingsRegistry that provides all the relevant getters
of the POJO.DeleteTableRequest parseTablePojoToDeleteTableRequest(java.lang.Class<?> clazz, DynamoDBMapperConfig config)
clazz
- The POJO class.config
- The DynamoDBMapperConfig which contains the TableNameOverrides parameter used to
determine the table name.DynamoDBTableSchemaParser.TableIndexesInfo parseTableIndexes(java.lang.Class<?> clazz, DynamoDBMappingsRegistry registry)
private static AttributeDefinition getKeyAttributeDefinition(java.lang.reflect.Method keyGetter, ItemConverter converter)
private static void putAfterCheckConflict(java.util.Map<java.lang.String,AttributeDefinition> map, AttributeDefinition attrDefinition)