| Modifier and Type | Method and Description |
|---|---|
TableSchema<T> |
MappedIndex.getTableSchema()
Gets the
TableSchema object that this mapped table was built with. |
TableSchema<T> |
MappedTable.getTableSchema()
Gets the
TableSchema object that this mapped table was built with. |
| Modifier and Type | Method and Description |
|---|---|
default ResultT |
CommonOperation.execute(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete execution of this operation against either the primary or a secondary index.
|
default ResultT |
TableOperation.executeOnPrimaryIndex(TableSchema<ItemT> tableSchema,
String tableName,
MapperExtension mapperExtension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete execution of this operation against the primary index.
|
default ResultT |
IndexOperation.executeOnSecondaryIndex(TableSchema<ItemT> tableSchema,
String tableName,
String indexName,
MapperExtension mapperExtension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete execution of this operation against a secondary index.
|
RequestT |
CommonOperation.generateRequest(TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension)
This method generates the request that needs to be sent to a low level
DynamoDbClient. |
TransactGetItem |
TransactableReadOperation.generateTransactGetItem(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
TransactWriteItem |
TransactableWriteOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
WriteRequest |
BatchableWriteOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext context,
MapperExtension mapperExtension) |
Map<String,AttributeValue> |
Key.getKeyMap(TableSchema<?> tableSchema,
String index)
Return a map of the key elements that can be passed directly to DynamoDb.
|
Map<String,AttributeValue> |
Key.getPrimaryKeyMap(TableSchema<?> tableSchema)
Return a map of the key elements that form the primary key of a table that can be passed directly to DynamoDb.
|
<T> MappedTable<T> |
MappedDatabase.table(String tableName,
TableSchema<T> tableSchema)
Returns a mapped table that can be used to execute commands that work with mapped items against that table.
|
ResultT |
CommonOperation.transformResponse(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext context,
MapperExtension mapperExtension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
| Modifier and Type | Method and Description |
|---|---|
TableSchema<T> |
DynamoDbMappedTable.getTableSchema() |
TableSchema<T> |
DynamoDbMappedIndex.getTableSchema() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Key |
Utils.createKeyFromItem(T item,
TableSchema<T> tableSchema,
String indexName) |
static <ResponseT,ItemT> |
Utils.readAndTransformPaginatedItems(TableSchema<ItemT> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension,
Function<ResponseT,List<Map<String,AttributeValue>>> getItems,
Function<ResponseT,Map<String,AttributeValue>> getLastEvaluatedKey) |
static <T> T |
Utils.readAndTransformSingleItem(Map<String,AttributeValue> itemMap,
TableSchema<T> tableSchema,
OperationContext operationContext,
MapperExtension mapperExtension) |
<T> DynamoDbMappedTable<T> |
DynamoDbMappedDatabase.table(String tableName,
TableSchema<T> tableSchema) |
| Modifier and Type | Class and Description |
|---|---|
class |
StaticTableSchema<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T,K> Attribute.AttributeSupplier<T> |
Attributes.documentMap(String attributeName,
Function<T,K> getAttributeMethod,
BiConsumer<T,K> updateItemMethod,
TableSchema<K> documentSchema) |
static <T> AttributeType<T> |
AttributeTypes.documentMapType(TableSchema<T> documentSchema) |
Copyright © 2019. All rights reserved.