Package com.azure.data.tables.models
Class TableTransactionAction
- java.lang.Object
-
- com.azure.data.tables.models.TableTransactionAction
-
public final class TableTransactionAction extends Object
Defines an action to be included as part of a transactional operation.
-
-
Constructor Summary
Constructors Constructor Description TableTransactionAction(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableTransactionActionTypegetActionType()Get theoperation typeto be applied to theentity.TableEntitygetEntity()Get thetable entityto which theactionTypewill be applied.booleangetIfUnchanged()Get theifUnchangedvalue of this action.
-
-
-
Constructor Detail
-
TableTransactionAction
public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity)
Initializes a new instance of theTableTransactionAction.- Parameters:
actionType- The operation type to be applied to theentity.entity- The table entity to which theactionTypewill 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 theactionTypewill 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 Detail
-
getActionType
public TableTransactionActionType getActionType()
Get theoperation typeto be applied to theentity.- Returns:
- The
operation type.
-
getEntity
public TableEntity getEntity()
Get thetable entityto which theactionTypewill be applied.- Returns:
- The
table entityto which theactionTypewill be applied.
-
getIfUnchanged
public boolean getIfUnchanged()
Get theifUnchangedvalue 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
ifUnchangedvalue of this action.
-
-