接口 ConfigInfoMapper
- 所有超级接口:
Mapper
The mapper of config info.
- 作者:
- hyx
-
方法概要
修饰符和类型方法说明default MapperResultconfigInfoLikeTenantCount(MapperContext context) Returns the number of configuration items.default MapperResultfindAllConfigInfo4Export(MapperContext context) query all configuration information according to group, appName, tenant (for export).Query all configuration information by page.findAllConfigInfoFetchRows(MapperContext context) Query all configuration information by page.findAllConfigInfoFragment(MapperContext context) Query all config info.findAllConfigKey(MapperContext context) Query all configuration information by page.default MapperResultfindAllDataIdAndGroup(MapperContext context) Find all dataId and group.default MapperResultfindChangeConfig(MapperContext context) Query change config.default MapperResultfindChangeConfigCountRows(MapperContext context) Get the count of config information.findChangeConfigFetchRows(MapperContext context) According to the time period and configuration conditions to query the eligible configuration.default MapperResultfind the count of config info.find config info.Query configuration information based on group.default MapperResultGet the count of config information.Get the config information.default MapperResultQuery the count of config_info by tenantId and appName.Query configuration information based on group.default MapperResultQuery config info count.Query config info.default MapperResultfindConfigInfosByIds(MapperContext context) find ConfigInfo by ids.default MapperResultfindConfigMaxId(MapperContext context) Get the maxId.getGroupIdList(MapperContext context) Get group id list by page.default String获取返回表名.getTenantIdList(MapperContext context) Get tenant id list by page.list group key md5 by page.default MapperResultremoveConfigInfoByIdsAtomic(MapperContext context) Remove configuration; database atomic operation, minimum SQL action, no business encapsulation.default MapperResultupdateConfigInfoAtomicCas(MapperContext context) Update configuration; database atomic operation, minimum SQL action, no business encapsulation.从接口继承的方法 com.alibaba.nacos.plugin.datasource.mapper.Mapper
count, delete, getDataSource, getFunction, getPrimaryKeyGeneratedKeys, insert, select, update
-
方法详细资料
-
findConfigMaxId
Get the maxId. The default sql: SELECT max(id) FROM config_info- 参数:
context- sql paramMap- 返回:
- the sql of getting the maxId.
-
findAllDataIdAndGroup
Find all dataId and group. The default sql: SELECT DISTINCT data_id, group_id FROM config_info- 参数:
context- sql paramMap- 返回:
- The sql of finding all dataId and group.
-
findConfigInfoByAppCountRows
Query the count of config_info by tenantId and appName. The default sql: SELECT count(*) FROM config_info WHERE tenant_id LIKE ? AND app_name=?- 参数:
context- sql paramMap- 返回:
- The sql of querying the count of config_info.
-
findConfigInfoByAppFetchRows
Query configuration information based on group.
The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content FROM config_info WHERE tenant_id LIKE ? AND app_name=? LIMIT startRow, pageSize- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of querying configration information based on group.
-
configInfoLikeTenantCount
Returns the number of configuration items. The default sql: SELECT count(*) FROM config_info WHERE tenant_id LIKE ?- 参数:
context- sql paramMap- 返回:
- The sql of querying the number of configuration items.
-
getTenantIdList
Get tenant id list by page. The default sql: SELECT tenant_id FROM config_info WHERE tenant_id != '' GROUP BY tenant_id LIMIT startRow, pageSize- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of getting tenant id list by page.
-
getGroupIdList
Get group id list by page. The default sql: SELECT group_id FROM config_info WHERE tenant_id ='{defaultNamespaceId}' GROUP BY group_id LIMIT startRow, pageSize- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of getting group id list by page.
-
findAllConfigKey
Query all configuration information by page. The default sql: SELECT data_id,group_id,app_name FROM ( SELECT id FROM config_info WHERE tenant_id LIKE ? ORDER BY id LIMIT startRow, pageSize ) g, config_info t WHERE g.id = t.id- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of querying all configuration information.
-
findAllConfigInfoBaseFetchRows
Query all configuration information by page. The default sql: SELECT t.id,data_id,group_id,content,md5 FROM ( SELECT id FROM config_info ORDER BY id LIMIT ?,?) g, config_info t WHERE g.id = t.id- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of querying all configuration information by page.
-
findAllConfigInfoFragment
Query all config info. The default sql: "SELECT id,data_id,group_id,tenant_id,app_name,"+ (needContent ? "content," : "") + "md5,gmt_modified,type,encrypted_data_key FROM config_info WHERE id > ? ORDER BY id ASC LIMIT startRow,pageSize"- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of querying all config info.
-
findChangeConfig
Query change config.
The default sql: SELECT id, data_id, group_id, tenant_id, app_name, md5, gmt_modified,encrypted_data_key FROM config_info WHERE gmt_modified >=? AND id > ? ORDER BY id LIMIT pageSize- 参数:
context- sql paramMap- 返回:
- The sql of querying change config.
-
findChangeConfigCountRows
Get the count of config information. The default sql: SELECT count(*) FROM config_info WHERE ...- 参数:
context- The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime, endTime, content), the value is the key's value.- 返回:
- The sql of getting the count of config information.
-
findChangeConfigFetchRows
According to the time period and configuration conditions to query the eligible configuration. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,type,md5,gmt_modified FROM config_info WHERE ...- 参数:
context- The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime, endTime, content, startTime, endTime), the value is the key's value.- 返回:
- The sql of getting config information according to the time period.
-
listGroupKeyMd5ByPageFetchRows
list group key md5 by page. The default sql: SELECT t.id,data_id,group_id,tenant_id,app_name,md5,type,gmt_modified,encrypted_data_key FROM ( SELECT id FROM config_info ORDER BY id LIMIT ?,? ) g, config_info t WHERE g.id = t.id- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of listing group key md5 by page.
-
findAllConfigInfo4Export
query all configuration information according to group, appName, tenant (for export). The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,type,md5,gmt_create,gmt_modified, src_user,src_ip,c_desc,c_use,effect,c_schema,encrypted_data_key FROM config_info WHERE ...- 参数:
context- The map of params, the key is the parameter name(dataId, group, appName), the value is the key's value.- 返回:
- Collection of ConfigInfo objects
-
findConfigInfoBaseLikeCountRows
Get the count of config information. The default sql: SELECT count(*) FROM config_info WHERE ...- 参数:
context- The map of params, the key is the parameter name(dataId, groupId, tenant_id, content), the value is the arbitrary object.- 返回:
- The sql of getting the count of config information.
-
findConfigInfoBaseLikeFetchRows
Get the config information. The default sql: SELECT id,data_id,group_id,tenant_id,content FROM config_info WHERE ...- 参数:
context- The map of params, the key is the parameter name(dataId, groupId, tenant_id, content), the value is the key's value.- 返回:
- The sql of getting the config information.
-
findConfigInfo4PageCountRows
find the count of config info. The default sql: SELECT count(*) FROM config_info ...- 参数:
context- The mpa of dataId, groupId and appName.- 返回:
- The count of config info.
-
findConfigInfo4PageFetchRows
find config info. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,type,encrypted_data_key FROM config_info ...- 参数:
context- The mpa of dataId, groupId and appName.- 返回:
- The sql of finding config info.
-
findConfigInfoBaseByGroupFetchRows
Query configuration information based on group. The default sql: SELECT id,data_id,group_id,content FROM config_info WHERE group_id=? AND tenant_id=? LIMIT startRow, pageSize- 参数:
context- The context of startRow, pageSize- 返回:
- Query configuration information based on group.
-
findConfigInfoLike4PageCountRows
Query config info count. The default sql: SELECT count(*) FROM config_info ...- 参数:
context- The map of dataId, group, appName, content- 返回:
- The sql of querying config info count
-
findConfigInfoLike4PageFetchRows
Query config info.
The default sql:
SELECT id,data_id,group_id,tenant_id,app_name,content,encrypted_data_key FROM config_info ...- 参数:
context- The context of startRow, pageSize- 返回:
- The sql of querying config info
-
findAllConfigInfoFetchRows
Query all configuration information by page.
The default sql:
SELECT t.id,data_id,group_id,tenant_id,app_name,content,md5 " + " FROM ( SELECT id FROM config_info WHERE tenant_id LIKE ? ORDER BY id LIMIT ?,? )" + " g, config_info t WHERE g.id = t.id- 参数:
context- The context of startRow, pageSize- 返回:
- Query all configuration information by page.
-
findConfigInfosByIds
find ConfigInfo by ids.
The default sql:
SELECT ID,data_id,group_id,tenant_id,app_name,content,md5 FROM config_info WHERE id IN (...)- 参数:
context- the size of ids.- 返回:
- find ConfigInfo by ids.
-
removeConfigInfoByIdsAtomic
Remove configuration; database atomic operation, minimum SQL action, no business encapsulation.- 参数:
context- The size of ids.- 返回:
- The sql of removing configuration.
-
updateConfigInfoAtomicCas
Update configuration; database atomic operation, minimum SQL action, no business encapsulation. The default sql: UPDATE config_info SET content=?, md5 = ?, src_ip=?,src_user=?,gmt_modified=?, app_name=?,c_desc=?,c_use=?, effect=?,type=?,c_schema=? WHERE data_id=? AND group_id=? AND tenant_id=? AND (md5=? OR md5 IS NULL OR md5='')- 参数:
context- sql paramMap- 返回:
- The sql of updating configuration cas.
-
getTableName
获取返回表名.- 指定者:
getTableName在接口中Mapper- 返回:
- 表名
-