TableTransactionAction Class
- java.
lang. Object - com.
azure. data. tables. models. TableTransactionAction
- com.
public final class TableTransactionAction
Defines an action to be included as part of a transactional operation.
Constructor Summary
Constructor | Description |
---|---|
TableTransactionAction(TableTransactionActionType actionType, TableEntity entity) |
Initializes a new instance of the TableTransactionAction. |
TableTransactionAction(TableTransactionActionType actionType, TableEntity entity, boolean ifUnchanged) |
Initializes a new instance of the TableTransactionAction. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Table |
getActionType()
Get the TableTransactionActionType to be applied to the TableEntity. |
Table |
getEntity()
Get the TableEntity to which the |
boolean |
getIfUnchanged()
Get the |
Methods inherited from java.lang.Object
Constructor Details
TableTransactionAction
public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity)
Initializes a new instance of the TableTransactionAction.
Parameters:
entity
.
actionType
will be applied.
TableTransactionAction
public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity, boolean ifUnchanged)
Initializes a new instance of the TableTransactionAction.
Parameters:
entity
.
actionType
will be applied.
true
, the ETag of the provided entity must match the ETag of the entity in the
Table service. If the values do not match, the action will not be performed and an exception will be thrown.
This value is only applied for update and delete actions.
Method Details
getActionType
public TableTransactionActionType getActionType()
Get the TableTransactionActionType to be applied to the TableEntity.
Returns:
getEntity
public TableEntity getEntity()
Get the TableEntity to which the actionType
will be applied.
Returns:
actionType
will be applied.getIfUnchanged
public boolean getIfUnchanged()
Get the ifUnchanged
value of this action. When true
, the ETag of the provided entity must match the ETag of the entity in the Table service. If the values do not match, the action will not be performed and an exception will be thrown. This value is only applied for update and delete actions.
Returns:
ifUnchanged
value of this action.Applies to
Azure SDK for Java