public class BaseDistributedLockSql extends Object implements DistributedLockSql
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALL_COLUMNS |
protected static String |
DISTRIBUTED_LOCK_TABLE_PLACE_HOLD |
protected static String |
INSERT_DISTRIBUTED_LOCK_SQL |
protected static String |
SELECT_FOR_UPDATE_SQL |
protected static String |
UPDATE_DISTRIBUTED_LOCK_SQL |
| Constructor and Description |
|---|
BaseDistributedLockSql() |
| Modifier and Type | Method and Description |
|---|---|
String |
getInsertSql(String distributedLockTable)
Get insert distribute lock sql
|
String |
getSelectDistributeForUpdateSql(String distributedLockTable)
Get the select distribute lock sql
|
String |
getUpdateSql(String distributedLockTable)
Get update distribute lock sql
|
protected static final String DISTRIBUTED_LOCK_TABLE_PLACE_HOLD
protected static final String ALL_COLUMNS
protected static final String SELECT_FOR_UPDATE_SQL
protected static final String INSERT_DISTRIBUTED_LOCK_SQL
protected static final String UPDATE_DISTRIBUTED_LOCK_SQL
public String getSelectDistributeForUpdateSql(String distributedLockTable)
DistributedLockSqlgetSelectDistributeForUpdateSql in interface DistributedLockSqldistributedLockTable - the table name of the distribute lock tablepublic String getInsertSql(String distributedLockTable)
DistributedLockSqlgetInsertSql in interface DistributedLockSqldistributedLockTable - the table name of the distribute lock tablepublic String getUpdateSql(String distributedLockTable)
DistributedLockSqlgetUpdateSql in interface DistributedLockSqldistributedLockTable - the table name of the distribute lock tableCopyright © 2023 Seata. All rights reserved.