public class AbstractLockStoreSql extends Object implements LockStoreSql
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALL_COLUMNS
The constant ALL_COLUMNS.
|
protected static io.seata.config.Configuration |
CONFIG
The constant CONFIG.
|
protected static String |
IN_PARAMS_PLACE_HOLD
The constant IN_PARAMS_PLACE_HOLD.
|
protected static String |
LOCK_TABLE_BRANCH_ID_WHERE_CONDITION_PLACE_HOLD
The constant LOCK_TABLE_BRANCH_ID_WHERE_CONDITION_PLACE_HOLD.
|
protected static String |
LOCK_TABLE_PK_WHERE_CONDITION_PLACE_HOLD
The constant LOCK_TABLE_PK_WHERE_CONDITION_PLACE_HOLD.
|
protected static String |
LOCK_TABLE_PLACE_HOLD
The constant LOCK_TABLE_PLACE_HOLD.
|
protected static String |
WHERE_PLACE_HOLD
The constant WHERE_PLACE_HOLD
|
| Constructor and Description |
|---|
AbstractLockStoreSql() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllLockSql(String lockTable,
String whereCondition)
Get all lock sql string.
|
String |
getBatchDeleteLockSql(String lockTable,
int rowSize)
Get batch delete lock sql string.
|
String |
getBatchDeleteLockSqlByBranchId(String lockTable)
Get batch delete lock sql string.
|
String |
getBatchDeleteLockSqlByXid(String lockTable)
Get batch delete lock sql string.
|
String |
getBatchUpdateStatusLockByGlobalSql(String lockTable)
get batch update status lock by global sql
|
String |
getCheckLockableSql(String lockTable,
int rowSize)
Get check lock sql string.
|
String |
getDeleteLockSql(String lockTable)
Get delete lock sql string.
|
String |
getInsertLockSQL(String lockTable)
Get insert lock sql string.
|
String |
getQueryLockSql(String lockTable)
Get query lock sql string.
|
protected static final io.seata.config.Configuration CONFIG
protected static final String LOCK_TABLE_PLACE_HOLD
protected static final String WHERE_PLACE_HOLD
protected static final String IN_PARAMS_PLACE_HOLD
protected static final String LOCK_TABLE_PK_WHERE_CONDITION_PLACE_HOLD
protected static final String LOCK_TABLE_BRANCH_ID_WHERE_CONDITION_PLACE_HOLD
protected static final String ALL_COLUMNS
public String getAllLockSql(String lockTable, String whereCondition)
LockStoreSqlgetAllLockSql in interface LockStoreSqllockTable - the lock tablewhereCondition - where conditionpublic String getInsertLockSQL(String lockTable)
LockStoreSqlgetInsertLockSQL in interface LockStoreSqllockTable - the lock tablepublic String getDeleteLockSql(String lockTable)
LockStoreSqlgetDeleteLockSql in interface LockStoreSqllockTable - the lock tablepublic String getBatchDeleteLockSql(String lockTable, int rowSize)
LockStoreSqlgetBatchDeleteLockSql in interface LockStoreSqllockTable - the lock tablerowSize - the size of rowkeypublic String getBatchDeleteLockSqlByBranchId(String lockTable)
LockStoreSqlgetBatchDeleteLockSqlByBranchId in interface LockStoreSqllockTable - the lock tablepublic String getBatchDeleteLockSqlByXid(String lockTable)
LockStoreSqlgetBatchDeleteLockSqlByXid in interface LockStoreSqllockTable - the lock tablepublic String getQueryLockSql(String lockTable)
LockStoreSqlgetQueryLockSql in interface LockStoreSqllockTable - the lock tablepublic String getCheckLockableSql(String lockTable, int rowSize)
LockStoreSqlgetCheckLockableSql in interface LockStoreSqllockTable - the lock tablerowSize - the size of rowkeypublic String getBatchUpdateStatusLockByGlobalSql(String lockTable)
LockStoreSqlgetBatchUpdateStatusLockByGlobalSql in interface LockStoreSqllockTable - the lock tableCopyright © 2023 Seata. All rights reserved.