TableTransactionAction Class
- java.
lang. Object - com.
azure. data. tables. models. TableTransactionAction
- com.
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 |
---|---|
Table |
getActionType()
Get the TableTransactionActionType to be applied to the TableEntity. |
Table |
getEntity()
Get the TableEntity to which the |
boolean |
getIfUnchanged()
Get the |
Methods inherited from java.lang.Object
Constructor Details
TableTransactionAction
public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity)
Initializes a new instance of the TableTransactionAction.
Parameters:
entity
.
actionType
will be applied.
TableTransactionAction
public TableTransactionAction(TableTransactionActionType actionType, TableEntity entity, boolean ifUnchanged)
Initializes a new instance of the TableTransactionAction.
Parameters:
entity
.
actionType
will be applied.
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:
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:
ifUnchanged
value of this action.Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기