다음을 통해 공유


TableTransactionAction Class

  • java.lang.Object
    • com.azure.data.tables.models.TableTransactionAction

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
TableTransactionActionType getActionType()

Get the TableTransactionActionType to be applied to the TableEntity.

TableEntity getEntity()

Get the TableEntity to which the actionType will be applied.

boolean getIfUnchanged()

Get the ifUnchanged value of this action.

Methods inherited from java.lang.Object

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 TableTransactionActionType to be applied to the TableEntity.

Returns:

getEntity

public TableEntity getEntity()

Get the TableEntity to which the actionType will be applied.

Returns:

The TableEntity 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.

Applies to