Class TableTransactionAction


  • public final class TableTransactionAction
    extends Object
    Defines an action to be included as part of a transactional operation.
    • Constructor Detail

      • 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 Detail

      • 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.