Modifier and Type | Method and Description |
---|---|
static <T> TableSchema<T> |
TableSchema.fromClass(Class<T> annotatedClass)
Scans a class that has been annotated with DynamoDb enhanced client annotations and then returns an appropriate
TableSchema implementation that can map records to and from items of that class. |
TableSchema<T> |
MappedTableResource.tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
TableSchema<T> |
DynamoDbIndex.tableSchema()
Gets the
TableSchema object that this mapped table was built with. |
default TableSchema<?> |
DynamoDbExtensionContext.Context.tableSchema() |
TableSchema<T> |
DynamoDbAsyncIndex.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 . |
static <T> EnhancedType<T> |
EnhancedType.documentOf(Class<T> documentClass,
TableSchema<T> documentTableSchema,
Consumer<EnhancedTypeDocumentConfiguration.Builder> enhancedTypeConfiguration)
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 | Class and Description |
---|---|
class |
DocumentTableSchema
Implementation of
TableSchema that builds a table schema based on DynamoDB Items. |
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> |
DefaultDynamoDbTable.tableSchema() |
TableSchema<T> |
DefaultDynamoDbIndex.tableSchema() |
TableSchema<T> |
DefaultDynamoDbAsyncTable.tableSchema() |
TableSchema<T> |
DefaultDynamoDbAsyncIndex.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 |
EqualToConditional.expression(TableSchema<?> tableSchema,
String indexName) |
Expression |
BetweenConditional.expression(TableSchema<?> tableSchema,
String indexName) |
Expression |
BeginsWithConditional.expression(TableSchema<?> tableSchema,
String indexName) |
Modifier and Type | Method and Description |
---|---|
static <T> DocumentAttributeConverter<T> |
DocumentAttributeConverter.create(TableSchema<T> tableSchema,
EnhancedType<T> enhancedType) |
Modifier and Type | Method and Description |
---|---|
TableSchema<?> |
DefaultDynamoDbExtensionContext.tableSchema() |
Modifier and Type | Method and Description |
---|---|
DefaultDynamoDbExtensionContext.Builder |
DefaultDynamoDbExtensionContext.Builder.tableSchema(TableSchema<?> tableSchema) |
Modifier and Type | Class and Description |
---|---|
class |
MetaTableSchema<T>
An implementation of
TableSchema that can be instantiated as an uninitialized reference and then lazily
initialized later with a concrete TableSchema at which point it will behave as the real object. |
Modifier and Type | Method and Description |
---|---|
TableSchema<T> |
MetaTableSchema.concreteTableSchema() |
Modifier and Type | Method and Description |
---|---|
void |
MetaTableSchema.initialize(TableSchema<T> realTableSchema) |
Modifier and Type | Method and Description |
---|---|
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 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 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 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 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 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 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 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 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 |
PaginatedOperation.generateRequest(TableSchema<ItemT> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension)
This method generates the request that needs to be sent to a low level
DynamoDbClient . |
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 . |
UpdateItemRequest |
UpdateItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
ScanRequest |
ScanOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
QueryRequest |
QueryOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
PutItemRequest |
PutItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
GetItemRequest |
GetItemOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
DescribeTableRequest |
DescribeTableOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
DeleteTableRequest |
DeleteTableOperation.generateRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
DeleteItemRequest |
DeleteItemOperation.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 |
TransactableWriteOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
PutItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
TransactWriteItem |
DeleteItemOperation.generateTransactWriteItem(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
WriteRequest |
PutItemOperation.generateWriteRequest(TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
WriteRequest |
DeleteItemOperation.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) |
DeleteItemEnhancedResponse<T> |
DeleteItemOperation.transformResponse(DeleteItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
Void |
DeleteTableOperation.transformResponse(DeleteTableResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
DescribeTableEnhancedResponse |
DescribeTableOperation.transformResponse(DescribeTableResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
T |
GetItemOperation.transformResponse(GetItemResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension extension) |
PutItemEnhancedResponse<T> |
PutItemOperation.transformResponse(PutItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
Page<T> |
QueryOperation.transformResponse(QueryResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
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.
|
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<T> |
ScanOperation.transformResponse(ScanResponse response,
TableSchema<T> tableSchema,
OperationContext context,
DynamoDbEnhancedClientExtension dynamoDbEnhancedClientExtension) |
UpdateItemEnhancedResponse<T> |
UpdateItemOperation.transformResponse(UpdateItemResponse response,
TableSchema<T> tableSchema,
OperationContext operationContext,
DynamoDbEnhancedClientExtension extension) |
Modifier and Type | Class and Description |
---|---|
class |
WrappedTableSchema<T,R extends TableSchema<T>>
Base class for any
TableSchema implementation that wraps and acts as a different TableSchema
implementation. |
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 |
ImmutableTableSchema<T>
Implementation of
TableSchema that builds a table schema based on properties and annotations of an immutable
class with an associated builder class. |
class |
StaticImmutableTableSchema<T,B>
Implementation of
TableSchema that builds a schema for immutable data objects based on directly declared
attributes. |
class |
StaticTableSchema<T>
Implementation of
TableSchema that builds a schema based on directly declared attributes and methods to
get and set those attributes. |
class |
WrappedTableSchema<T,R extends TableSchema<T>>
Base class for any
TableSchema implementation that wraps and acts as a different TableSchema
implementation. |
Modifier and Type | Method and Description |
---|---|
<R> StaticTableSchema.Builder<T> |
StaticTableSchema.Builder.flatten(TableSchema<R> otherTableSchema,
Function<T,R> otherItemGetter,
BiConsumer<T,R> otherItemSetter)
Flattens all the attributes defined in another
StaticTableSchema into the database record this schema
maps to. |
<T1> StaticImmutableTableSchema.Builder<T,B> |
StaticImmutableTableSchema.Builder.flatten(TableSchema<T1> otherTableSchema,
Function<T,T1> otherItemGetter,
BiConsumer<B,T1> otherItemSetter)
Flattens all the attributes defined in another
TableSchema into the database record this schema
maps to. |
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 © 2023. All rights reserved.