@NotThreadSafe public class TransactionWriteRequest extends Object
AbstractDynamoDBMapper.transactionWrite(TransactionWriteRequest)
operation.Modifier and Type | Class and Description |
---|---|
static class |
TransactionWriteRequest.TransactionWriteOperation
Represents a write operation to be executed on an object as part of a transactional write request.
|
static class |
TransactionWriteRequest.TransactionWriteOperationType
Operation type for transactional write operations.
|
Constructor and Description |
---|
TransactionWriteRequest() |
Modifier and Type | Method and Description |
---|---|
TransactionWriteRequest |
addConditionCheck(Object key,
DynamoDBTransactionWriteExpression transactionWriteExpression)
Adds conditionCheck operation (to be executed on the object represented by key) to the list of transaction write operations.
|
TransactionWriteRequest |
addConditionCheck(Object key,
DynamoDBTransactionWriteExpression transactionWriteExpression,
ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Adds conditionCheck operation (to be executed on the object represented by key) to the list of transaction write operations.
|
TransactionWriteRequest |
addDelete(Object key)
Adds delete operation (to be executed on the object represented by key) to the list of transaction write operations.
|
TransactionWriteRequest |
addDelete(Object key,
DynamoDBTransactionWriteExpression transactionWriteExpression)
Adds delete operation (to be executed on the object represented by key) to the list of transaction write operations.
|
TransactionWriteRequest |
addDelete(Object key,
DynamoDBTransactionWriteExpression transactionWriteExpression,
ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Adds delete operation (to be executed on the object represented by key) to the list of transaction write operations.
|
TransactionWriteRequest |
addPut(Object object)
Adds put operation (to be executed on object) to the list of transaction write operations.
|
TransactionWriteRequest |
addPut(Object object,
DynamoDBTransactionWriteExpression transactionWriteExpression)
Adds put operation (to be executed on object) to the list of transaction write operations.
|
TransactionWriteRequest |
addPut(Object object,
DynamoDBTransactionWriteExpression transactionWriteExpression,
ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Adds put operation (to be executed on object) to the list of transaction write operations.
|
TransactionWriteRequest |
addUpdate(Object object)
Adds update operation (to be executed on object) to the list of transaction write operations.
|
TransactionWriteRequest |
addUpdate(Object object,
DynamoDBTransactionWriteExpression transactionWriteExpression)
Adds update operation (to be executed on object) to the list of transaction write operations.
|
TransactionWriteRequest |
addUpdate(Object object,
DynamoDBTransactionWriteExpression transactionWriteExpression,
ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
Adds update operation (to be executed on object) to the list of transaction write operations.
|
String |
getIdempotencyToken()
Token used to support idempotency on server side.
|
List<TransactionWriteRequest.TransactionWriteOperation> |
getTransactionWriteOperations()
List of TransactionWriteOperations to be executed as part of this transactional write request.
|
TransactionWriteRequest |
withIdempotencyToken(String idempotencyToken)
Token used to support idempotency on server side.
|
public TransactionWriteRequest addPut(Object object)
public TransactionWriteRequest addPut(Object object, DynamoDBTransactionWriteExpression transactionWriteExpression)
public TransactionWriteRequest addPut(Object object, DynamoDBTransactionWriteExpression transactionWriteExpression, ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
public TransactionWriteRequest addUpdate(Object object)
public TransactionWriteRequest addUpdate(Object object, DynamoDBTransactionWriteExpression transactionWriteExpression)
public TransactionWriteRequest addUpdate(Object object, DynamoDBTransactionWriteExpression transactionWriteExpression, ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
public TransactionWriteRequest addDelete(Object key)
public TransactionWriteRequest addDelete(Object key, DynamoDBTransactionWriteExpression transactionWriteExpression)
public TransactionWriteRequest addDelete(Object key, DynamoDBTransactionWriteExpression transactionWriteExpression, ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
public TransactionWriteRequest addConditionCheck(Object key, DynamoDBTransactionWriteExpression transactionWriteExpression)
public TransactionWriteRequest addConditionCheck(Object key, DynamoDBTransactionWriteExpression transactionWriteExpression, ReturnValuesOnConditionCheckFailure returnValuesOnConditionCheckFailure)
public TransactionWriteRequest withIdempotencyToken(String idempotencyToken)
public List<TransactionWriteRequest.TransactionWriteOperation> getTransactionWriteOperations()
public String getIdempotencyToken()