T - The type of object this transaction applies to. Can be safely erased as it's not needed outside the
class itself.public class ReadTransaction<T> extends Object
TransactGetItemsEnhancedRequest.
Example:
ReadTransaction.create(table1, GetItem.create(Key.create(stringValue("id123"))));
ReadTransaction.create(table2, GetItem.create(Key.create(stringValue("id456"))));
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadTransaction.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> ReadTransaction.Builder<T> |
builder() |
static <T> ReadTransaction<T> |
create(MappedTableResource<T> mappedTableResource,
TransactableReadOperation<T> readOperation) |
boolean |
equals(Object o) |
TransactGetItem |
generateTransactGetItem()
This method is used by the internal transactGetItems operation to generate a transact read item used in the call to
DynamoDb.
|
int |
hashCode() |
MappedTableResource<T> |
mappedTableResource() |
TransactableReadOperation<T> |
readOperation() |
ReadTransaction.Builder<T> |
toBuilder() |
public static <T> ReadTransaction<T> create(MappedTableResource<T> mappedTableResource, TransactableReadOperation<T> readOperation)
public static <T> ReadTransaction.Builder<T> builder()
public ReadTransaction.Builder<T> toBuilder()
public MappedTableResource<T> mappedTableResource()
public TransactableReadOperation<T> readOperation()
public TransactGetItem generateTransactGetItem()
TransactableReadOperation, such as GetItem, creates a transact get item corresponding to
that operation. The method should only be called from the transactGetItems operation and should not be used for other
purposes.TransactGetItem that will be used in calls to DynamoDb.Copyright © 2020. All rights reserved.