Modifier and Type | Method and Description |
---|---|
TableSchema<T> |
DynamoDbIndex.tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
TableSchema<T> |
DynamoDbAsyncIndex.tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
TableSchema<T> |
MappedTableResource.tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
Modifier and Type | Method and Description |
---|---|
Optional<TableSchema<T>> |
EnhancedType.tableSchema()
Retrieve the
TableSchema for a modeled document. |
Modifier and Type | Method and Description |
---|---|
static <T> EnhancedType<T> |
EnhancedType.documentOf(Class<T> documentClass,
TableSchema<T> documentTableSchema)
Create a type token that represents a document that is specified by the provided
TableSchema . |
Map<String,AttributeValue> |
Key.keyMap(TableSchema<?> tableSchema,
String index)
Return a map of the key elements that can be passed directly to DynamoDb.
|
Map<String,AttributeValue> |
Key.primaryKeyMap(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> DynamoDbTable<T> |
DynamoDbEnhancedClient.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.
|
<T> DynamoDbAsyncTable<T> |
DynamoDbEnhancedAsyncClient.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.
|
Modifier and Type | Method and Description |
---|---|
static <T> Key |
EnhancedClientUtils.createKeyFromItem(T item,
TableSchema<T> tableSchema,
String indexName) |
static Key |
EnhancedClientUtils.createKeyFromMap(Map<String,AttributeValue> itemMap,
TableSchema<?> tableSchema,
String indexName) |
static <ResponseT,ItemT> |
EnhancedClientUtils.readAndTransformPaginatedItems(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension,
Function<ResponseT,List<Map<String,AttributeValue>>> getItems,
Function<ResponseT,Map<String,AttributeValue>> getLastEvaluatedKey) |
static <T> T |
EnhancedClientUtils.readAndTransformSingleItem(Map<String,AttributeValue> itemMap,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
Modifier and Type | Method and Description |
---|---|
TableSchema<T> |
DefaultDynamoDbAsyncTable.tableSchema() |
TableSchema<T> |
DefaultDynamoDbTable.tableSchema() |
TableSchema<T> |
DefaultDynamoDbAsyncIndex.tableSchema() |
TableSchema<T> |
DefaultDynamoDbIndex.tableSchema() |
Modifier and Type | Method and Description |
---|---|
<T> DefaultDynamoDbTable<T> |
DefaultDynamoDbEnhancedClient.table(String tableName,
TableSchema<T> tableSchema) |
<T> DefaultDynamoDbAsyncTable<T> |
DefaultDynamoDbEnhancedAsyncClient.table(String tableName,
TableSchema<T> tableSchema) |
Modifier and Type | Method and Description |
---|---|
Expression |
SingleKeyItemConditional.expression(TableSchema<?> tableSchema,
String indexName) |
Expression |
BeginsWithConditional.expression(TableSchema<?> tableSchema,
String indexName) |
Expression |
BetweenConditional.expression(TableSchema<?> tableSchema,
String indexName) |
Expression |
EqualToConditional.expression(TableSchema<?> tableSchema,
String indexName) |
Modifier and Type | Method and Description |
---|---|
static <T> DocumentAttributeConverter |
DocumentAttributeConverter.create(TableSchema<T> tableSchema,
EnhancedType<T> enhancedType) |
Modifier and Type | Method and Description |
---|---|
default ResultT |
CommonOperation.execute(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against either the primary or a
secondary index.
|
default PageIterable<ItemT> |
PaginatedOperation.execute(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against either the primary or a
secondary index.
|
default CompletableFuture<ResultT> |
CommonOperation.executeAsync(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against either the
primary or a secondary index.
|
default PagePublisher<ItemT> |
PaginatedOperation.executeAsync(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against either the
primary or a secondary index.
|
default PageIterable<ItemT> |
PaginatedTableOperation.executeOnPrimaryIndex(TableSchema<ItemT> tableSchema,
String tableName,
DynamoDbEnhancedClientExtension extension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against the primary index.
|
default ResultT |
TableOperation.executeOnPrimaryIndex(TableSchema<ItemT> tableSchema,
String tableName,
DynamoDbEnhancedClientExtension extension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against the primary index.
|
default PagePublisher<ItemT> |
PaginatedTableOperation.executeOnPrimaryIndexAsync(TableSchema<ItemT> tableSchema,
String tableName,
DynamoDbEnhancedClientExtension extension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against the primary
index.
|
default CompletableFuture<ResultT> |
TableOperation.executeOnPrimaryIndexAsync(TableSchema<ItemT> tableSchema,
String tableName,
DynamoDbEnhancedClientExtension extension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against the primary
index.
|
default PageIterable<ItemT> |
PaginatedIndexOperation.executeOnSecondaryIndex(TableSchema<ItemT> tableSchema,
String tableName,
String indexName,
DynamoDbEnhancedClientExtension extension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against a secondary index.
|
default ResultT |
IndexOperation.executeOnSecondaryIndex(TableSchema<ItemT> tableSchema,
String tableName,
String indexName,
DynamoDbEnhancedClientExtension extension,
DynamoDbClient dynamoDbClient)
Default implementation of a complete synchronous execution of this operation against a secondary index.
|
default SdkPublisher<Page<ItemT>> |
PaginatedIndexOperation.executeOnSecondaryIndexAsync(TableSchema<ItemT> tableSchema,
String tableName,
String indexName,
DynamoDbEnhancedClientExtension extension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against a secondary
index.
|
default CompletableFuture<ResultT> |
IndexOperation.executeOnSecondaryIndexAsync(TableSchema<ItemT> tableSchema,
String tableName,
String indexName,
DynamoDbEnhancedClientExtension extension,
DynamoDbAsyncClient dynamoDbAsyncClient)
Default implementation of a complete non-blocking asynchronous execution of this operation against a secondary
index.
|
RequestT |
CommonOperation.generateRequest(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
RequestT |
PaginatedOperation.generateRequest(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
UpdateItemRequest |
UpdateItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
DeleteItemRequest |
DeleteItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
GetItemRequest |
GetItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
QueryRequest |
QueryOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
PutItemRequest |
PutItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
ScanRequest |
ScanOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
CreateTableRequest |
CreateTableOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
TransactGetItem |
TransactableReadOperation.generateTransactGetItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactGetItem |
GetItemOperation.generateTransactGetItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
UpdateItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
DeleteItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
TransactableWriteOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
PutItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
WriteRequest |
DeleteItemOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
WriteRequest |
PutItemOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
WriteRequest |
BatchableWriteOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
Void |
CreateTableOperation.transformResponse(CreateTableResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
T |
DeleteItemOperation.transformResponse(DeleteItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
T |
GetItemOperation.transformResponse(GetItemResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
Void |
PutItemOperation.transformResponse(PutItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
Page<T> |
QueryOperation.transformResponse(QueryResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
ResultT |
CommonOperation.transformResponse(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
Page<ItemT> |
PaginatedOperation.transformResponse(ResponseT response,
TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension)
Takes the response object returned by the actual DynamoDb call and maps it into a higher level abstracted
result object.
|
Page<T> |
ScanOperation.transformResponse(ScanResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
T |
UpdateItemOperation.transformResponse(UpdateItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
Modifier and Type | Class and Description |
---|---|
class |
BeanTableSchema<T>
Implementation of
TableSchema that builds a table schema based on properties and annotations of a bean
class. |
class |
StaticTableSchema<T>
Implementation of
TableSchema that builds a schema based on directly declared attributes and methods to
get and set those attributes. |
Modifier and Type | Method and Description |
---|---|
Expression |
QueryConditional.expression(TableSchema<?> tableSchema,
String indexName)
Generates a conditional
Expression based on specific context that is supplied as arguments. |
TransactWriteItem |
ConditionCheck.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
Copyright © 2020. All rights reserved.