Interface MappedTableResource<T>
-
- Type Parameters:
T- The type of the modelled object.
- All Known Subinterfaces:
DynamoDbAsyncTable<T>,DynamoDbTable<T>
- All Known Implementing Classes:
DefaultDynamoDbAsyncTable,DefaultDynamoDbTable
@ThreadSafe public interface MappedTableResource<T>
Interface for a resource object that is part of either aDynamoDbTableorDynamoDbAsyncTable. 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeykeyFrom(T item)Creates aKeyobject from a modelled item.DynamoDbEnhancedClientExtensionmapperExtension()Gets theDynamoDbEnhancedClientExtensionassociated with this mapped resource.StringtableName()Gets the physical table name that operations performed by this object will be executed against.TableSchema<T>tableSchema()Gets theTableSchemaobject that this mapped table was built with.
-
-
-
Method Detail
-
mapperExtension
DynamoDbEnhancedClientExtension mapperExtension()
Gets theDynamoDbEnhancedClientExtensionassociated with this mapped resource.- Returns:
- The
DynamoDbEnhancedClientExtensionassociated with this mapped resource.
-
tableSchema
TableSchema<T> tableSchema()
Gets theTableSchemaobject that this mapped table was built with.- Returns:
- The
TableSchemaobject for this mapped table.
-
tableName
String tableName()
Gets the physical table name that operations performed by this object will be executed against.- Returns:
- The physical table name.
-
keyFrom
Key keyFrom(T item)
Creates aKeyobject from a modelled item. This key can be used in query conditionals and get operations to locate a specific record.- Parameters:
item- The item to extract the key fields from.- Returns:
- A key that has been initialized with the index values extracted from the modelled object.
-
-