public class TCCFenceStoreDataBaseDAO extends Object implements TCCFenceStore
| Modifier and Type | Method and Description |
|---|---|
int |
deleteTCCFenceDO(Connection conn,
List<String> xids)
Delete tcc fence do boolean.
|
boolean |
deleteTCCFenceDO(Connection conn,
String xid,
Long branchId)
Delete tcc fence do boolean.
|
int |
deleteTCCFenceDOByDate(Connection conn,
Date datetime)
Delete tcc fence by datetime.
|
static TCCFenceStore |
getInstance() |
boolean |
insertTCCFenceDO(Connection conn,
TCCFenceDO tccFenceDO)
Insert tcc fence do boolean.
|
Set<String> |
queryEndStatusXidsByDate(Connection conn,
Date datetime,
int limit)
Query xid.
|
TCCFenceDO |
queryTCCFenceDO(Connection conn,
String xid,
Long branchId)
Query tcc fence do.
|
void |
setLogTableName(String logTableName)
Set LogTable Name
|
boolean |
updateTCCFenceDO(Connection conn,
String xid,
Long branchId,
int newStatus,
int oldStatus)
Update tcc fence do boolean.
|
public static TCCFenceStore getInstance()
public TCCFenceDO queryTCCFenceDO(Connection conn, String xid, Long branchId)
TCCFenceStorequeryTCCFenceDO in interface TCCFenceStoreconn - the connectionxid - the global transaction idbranchId - the branch transaction idpublic Set<String> queryEndStatusXidsByDate(Connection conn, Date datetime, int limit)
TCCFenceStorequeryEndStatusXidsByDate in interface TCCFenceStoreconn - the connectiondatetime - the datetimelimit - the limit sizepublic boolean insertTCCFenceDO(Connection conn, TCCFenceDO tccFenceDO)
TCCFenceStoreinsertTCCFenceDO in interface TCCFenceStoreconn - the connectiontccFenceDO - the tcc fence dopublic boolean updateTCCFenceDO(Connection conn, String xid, Long branchId, int newStatus, int oldStatus)
TCCFenceStoreupdateTCCFenceDO in interface TCCFenceStoreconn - the connectionxid - the global transaction idbranchId - the branch transaction idnewStatus - the new statusoldStatus - the old statuspublic boolean deleteTCCFenceDO(Connection conn, String xid, Long branchId)
TCCFenceStoredeleteTCCFenceDO in interface TCCFenceStoreconn - the connectionxid - the global transaction idbranchId - the branch transaction idpublic int deleteTCCFenceDO(Connection conn, List<String> xids)
TCCFenceStoredeleteTCCFenceDO in interface TCCFenceStoreconn - the connectionxids - the global transaction idspublic int deleteTCCFenceDOByDate(Connection conn, Date datetime)
TCCFenceStoredeleteTCCFenceDOByDate in interface TCCFenceStoreconn - the connectiondatetime - datetimepublic void setLogTableName(String logTableName)
TCCFenceStoresetLogTableName in interface TCCFenceStorelogTableName - logTableNameCopyright © 2022 Seata. All rights reserved.