@ThreadSafe public class DynamoDbMappedTable<T> extends Object implements MappedTable<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
<R> R |
execute(TableOperation<T,?,?,R> operationToPerform)
Executes a command against the database with the context of the primary index of the specific table this object
is linked to.
|
DynamoDbClient |
getDynamoDbClient() |
MapperExtension |
getMapperExtension()
Gets the
MapperExtension associated with this mapped resource. |
String |
getTableName()
Gets the physical table name that operations performed by this object will be executed against.
|
TableSchema<T> |
getTableSchema()
Gets the
TableSchema object that this mapped table was built with. |
int |
hashCode() |
DynamoDbMappedIndex<T> |
index(String indexName)
Returns a mapped index that can be used to execute commands against a secondary index belonging to the table
being mapped by this object.
|
Key |
keyFrom(T item)
Creates a
Key object from a modelled item. |
public <R> R execute(TableOperation<T,?,?,R> operationToPerform)
MappedTableexecute in interface MappedTable<T>R - The expected return type from the operation. This is typically inferred by the compiler.operationToPerform - The operation to be performed in the context of the primary index of the table.public MapperExtension getMapperExtension()
MappedTableMapperExtension associated with this mapped resource.getMapperExtension in interface MappedTable<T>MapperExtension associated with this mapped resource.public TableSchema<T> getTableSchema()
MappedTableTableSchema object that this mapped table was built with.getTableSchema in interface MappedTable<T>TableSchema object for this mapped table.public DynamoDbClient getDynamoDbClient()
public String getTableName()
MappedTablegetTableName in interface MappedTable<T>public DynamoDbMappedIndex<T> index(String indexName)
MappedTableindex in interface MappedTable<T>indexName - The name of the secondary index to build the command interface for.MappedIndex object that can be used to execute database commands against.public Key keyFrom(T item)
MappedTableKey object from a modelled item. This key can be used in query conditionals and get
operations to locate a specific record.keyFrom in interface MappedTable<T>item - The item to extract the key fields from.Copyright © 2019. All rights reserved.