T - The type of object this transaction applies to. Can be safely erased as it's not needed outside the
class itself.public class WriteTransaction<T> extends Object
TransactWriteItemsEnhancedRequest.
Example:
WriteTransaction.create(myTable, putItem.create(myItem));
WriteTransaction.create(myTable, deleteItem.create(Key.create(stringValue("id123"))));
| Modifier and Type | Class and Description |
|---|---|
static class |
WriteTransaction.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> WriteTransaction.Builder<T> |
builder() |
static <T> WriteTransaction<T> |
create(MappedTableResource<T> mappedTableResource,
TransactableWriteOperation<T> writeOperation) |
boolean |
equals(Object o) |
TransactWriteItem |
generateTransactWriteItem()
This method is used by the internal transactWriteItems operation to generate a transact write item used in the call to
DynamoDb.
|
int |
hashCode() |
MappedTableResource<T> |
mappedTableResource() |
WriteTransaction.Builder<T> |
toBuilder() |
TransactableWriteOperation<T> |
writeOperation() |
public static <T> WriteTransaction<T> create(MappedTableResource<T> mappedTableResource, TransactableWriteOperation<T> writeOperation)
public static <T> WriteTransaction.Builder<T> builder()
public WriteTransaction.Builder<T> toBuilder()
public MappedTableResource<T> mappedTableResource()
public TransactableWriteOperation<T> writeOperation()
public TransactWriteItem generateTransactWriteItem()
TransactableWriteOperation, such as PutItem, creates a transact write item corresponding to
that operation. The method should only be called from the transactWriteItems operation and should not be used for other
purposes.TransactWriteItem that will be used in calls to DynamoDb.Copyright © 2020. All rights reserved.