T
- The type of the modelled object.public interface MappedTableResource<T>
DynamoDbTable
or DynamoDbAsyncTable
. This
part of the interface is common between both of those higher order interfaces and has methods to access the
metadata associated with the mapped entity, such as the schema and the table name, but knows nothing about how to
actually execute operations against it.Modifier and Type | Method and Description |
---|---|
Key |
keyFrom(T item)
Creates a
Key object from a modelled item. |
DynamoDbEnhancedClientExtension |
mapperExtension()
Gets the
DynamoDbEnhancedClientExtension associated with this mapped resource. |
String |
tableName()
Gets the physical table name that operations performed by this object will be executed against.
|
TableSchema<T> |
tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
DynamoDbEnhancedClientExtension mapperExtension()
DynamoDbEnhancedClientExtension
associated with this mapped resource.DynamoDbEnhancedClientExtension
associated with this mapped resource.TableSchema<T> tableSchema()
TableSchema
object that this mapped table was built with.TableSchema
object for this mapped table.String tableName()
Key keyFrom(T item)
Key
object from a modelled item. This key can be used in query conditionals and get
operations to locate a specific record.item
- The item to extract the key fields from.Copyright © 2020. All rights reserved.