Package com.azure.data.tables.models
Class TableTransactionAction
java.lang.Object
com.azure.data.tables.models.TableTransactionAction
Defines an action to be included as part of a transactional operation.
-
Constructor Summary
ConstructorDescriptionTableTransactionAction
(TableTransactionActionType actionType, TableEntity entity) Initializes a new instance of theTableTransactionAction
.TableTransactionAction
(TableTransactionActionType actionType, TableEntity entity, boolean ifUnchanged) Initializes a new instance of theTableTransactionAction
. -
Method Summary
Modifier and TypeMethodDescriptionGet theoperation type
to be applied to theentity
.Get thetable entity
to which theactionType
will be applied.boolean
Get theifUnchanged
value of this action.
-
Constructor Details
-
TableTransactionAction
Initializes a new instance of theTableTransactionAction
.- Parameters:
actionType
- The operation type to be applied to theentity
.entity
- The table entity to which theactionType
will be applied.
-
TableTransactionAction
public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity, boolean ifUnchanged) Initializes a new instance of theTableTransactionAction
.- Parameters:
actionType
- The operation type to be applied to theentity
.entity
- The table entity to which theactionType
will be applied.ifUnchanged
- Whentrue
, 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
Get theoperation type
to be applied to theentity
.- Returns:
- The
operation type
.
-
getEntity
Get thetable entity
to which theactionType
will be applied.- Returns:
- The
table entity
to which theactionType
will be applied.
-
getIfUnchanged
public boolean getIfUnchanged()Get theifUnchanged
value of this action. Whentrue
, 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:
- The
ifUnchanged
value of this action.
-