| 构造器和说明 |
|---|
TCCResource() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
String |
getActionName()
Gets action name.
|
String |
getAppName()
Gets app name.
|
BranchType |
getBranchType()
get resource type, AT, TCC, SAGA and XA
|
Class<?>[] |
getCommitArgsClasses()
get commit method args
|
Method |
getCommitMethod()
Gets commit method.
|
String |
getCommitMethodName()
Gets commit method name.
|
String[] |
getPhaseTwoCommitKeys()
get commit method args key
|
String[] |
getPhaseTwoRollbackKeys()
get rollback method args keys
|
Method |
getPrepareMethod()
Gets prepare method.
|
String |
getResourceGroupId()
Get the resource group id.
|
String |
getResourceId()
Get the resource id.
|
Class<?>[] |
getRollbackArgsClasses()
get rollback method args
|
Method |
getRollbackMethod()
Gets rollback method.
|
String |
getRollbackMethodName()
Gets rollback method name.
|
Object |
getTargetBean()
Gets target bean.
|
int |
hashCode() |
void |
setActionName(String actionName)
Sets action name.
|
void |
setAppName(String appName)
Sets app name.
|
void |
setCommitArgsClasses(Class<?>[] commitArgsClasses)
set commit method args
|
void |
setCommitMethod(Method commitMethod)
Sets commit method.
|
void |
setCommitMethodName(String commitMethodName)
Sets commit method name.
|
void |
setPhaseTwoCommitKeys(String[] phaseTwoCommitKeys)
set commit method args key
|
void |
setPhaseTwoRollbackKeys(String[] phaseTwoRollbackKeys)
set rollback method args key
|
void |
setPrepareMethod(Method prepareMethod)
Sets prepare method.
|
void |
setResourceGroupId(String resourceGroupId)
Sets resource group id.
|
void |
setRollbackArgsClasses(Class<?>[] rollbackArgsClasses)
set rollback method args
|
void |
setRollbackMethod(Method rollbackMethod)
Sets rollback method.
|
void |
setRollbackMethodName(String rollbackMethodName)
Sets rollback method name.
|
void |
setTargetBean(Object targetBean)
Sets target bean.
|
public String getResourceGroupId()
ResourcegetResourceGroupId 在接口中 Resourcepublic void setResourceGroupId(String resourceGroupId)
resourceGroupId - the resource group idpublic String getResourceId()
ResourcegetResourceId 在接口中 Resourcepublic BranchType getBranchType()
ResourcegetBranchType 在接口中 Resourcepublic String getAppName()
public void setAppName(String appName)
appName - the app namepublic String getActionName()
public void setActionName(String actionName)
actionName - the action namepublic Object getTargetBean()
public void setTargetBean(Object targetBean)
targetBean - the target beanpublic Method getPrepareMethod()
public void setPrepareMethod(Method prepareMethod)
prepareMethod - the prepare methodpublic Method getCommitMethod()
public void setCommitMethod(Method commitMethod)
commitMethod - the commit methodpublic Method getRollbackMethod()
public void setRollbackMethod(Method rollbackMethod)
rollbackMethod - the rollback methodpublic String getCommitMethodName()
public void setCommitMethodName(String commitMethodName)
commitMethodName - the commit method namepublic String getRollbackMethodName()
public void setRollbackMethodName(String rollbackMethodName)
rollbackMethodName - the rollback method namepublic Class<?>[] getCommitArgsClasses()
public void setCommitArgsClasses(Class<?>[] commitArgsClasses)
commitArgsClasses - commitArgsClassespublic Class<?>[] getRollbackArgsClasses()
public void setRollbackArgsClasses(Class<?>[] rollbackArgsClasses)
rollbackArgsClasses - rollbackArgsClassespublic String[] getPhaseTwoCommitKeys()
public void setPhaseTwoCommitKeys(String[] phaseTwoCommitKeys)
phaseTwoCommitKeys - phaseTwoCommitKeyspublic String[] getPhaseTwoRollbackKeys()
public void setPhaseTwoRollbackKeys(String[] phaseTwoRollbackKeys)
phaseTwoRollbackKeys - phaseTwoRollbackKeysCopyright © 2022 Seata. All rights reserved.