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 Details

    • TableTransactionAction

      public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity)
      Initializes a new instance of the TableTransactionAction.
      Parameters:
      actionType - The operation type to be applied to the entity.
      entity - The table entity to which the actionType will be applied.
    • TableTransactionAction

      public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity, boolean ifUnchanged)
      Initializes a new instance of the TableTransactionAction.
      Parameters:
      actionType - The operation type to be applied to the entity.
      entity - The table entity to which the actionType will be applied.
      ifUnchanged - 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.
  • Method Details

    • getActionType

      public TableTransactionActionType getActionType()
      Get the operation type to be applied to the entity.
      Returns:
      The operation type.
    • getEntity

      public TableEntity getEntity()
      Get the table entity to which the actionType will be applied.
      Returns:
      The table entity to which the 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:
      The ifUnchanged value of this action.