类 HistoryConfigInfoMapperByMySql
- java.lang.Object
-
- com.alibaba.nacos.plugin.datasource.mapper.AbstractMapper
-
- com.alibaba.nacos.plugin.datasource.impl.mysql.HistoryConfigInfoMapperByMySql
-
- 所有已实现的接口:
HistoryConfigInfoMapper,Mapper
public class HistoryConfigInfoMapperByMySql extends AbstractMapper implements HistoryConfigInfoMapper
The mysql implementation of HistoryConfigInfoMapper.- 作者:
- hyx
-
-
构造器概要
构造器 构造器 说明 HistoryConfigInfoMapperByMySql()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.StringdetailPreviousConfigHistory()Get previous config detail.java.lang.StringfindConfigHistoryCountByTime()Get the number of configurations before the specified time.java.lang.StringfindConfigHistoryFetchRows()List configuration history change record.java.lang.StringfindDeletedConfig()Query deleted config.java.lang.StringgetDataSource()Get the datasource name.java.lang.StringgetTableName()Get the name of table.java.lang.StringremoveConfigHistory()Delete data before startTime.-
从类继承的方法 com.alibaba.nacos.plugin.datasource.mapper.AbstractMapper
count, delete, getPrimaryKeyGeneratedKeys, insert, select, update
-
-
-
-
方法详细资料
-
removeConfigHistory
public java.lang.String removeConfigHistory()
从接口复制的说明:HistoryConfigInfoMapperDelete data before startTime. The default sql: DELETE FROM his_config_info WHERE gmt_modified < ? LIMIT ?- 指定者:
removeConfigHistory在接口中HistoryConfigInfoMapper- 返回:
- The sql of deleting data before startTime.
-
findConfigHistoryCountByTime
public java.lang.String findConfigHistoryCountByTime()
从接口复制的说明:HistoryConfigInfoMapperGet the number of configurations before the specified time. The default sql: SELECT count(*) FROM his_config_info WHERE gmt_modified < ?- 指定者:
findConfigHistoryCountByTime在接口中HistoryConfigInfoMapper- 返回:
- The sql of getting the number of configurations before the specified time.
-
findDeletedConfig
public java.lang.String findDeletedConfig()
从接口复制的说明:HistoryConfigInfoMapperQuery deleted config. The default sql: SELECT DISTINCT data_id, group_id, tenant_id FROM his_config_info WHERE op_type = 'D' AND gmt_modified >=? AND gmt_modified <= ?- 指定者:
findDeletedConfig在接口中HistoryConfigInfoMapper- 返回:
- The sql of querying deleted config.
-
findConfigHistoryFetchRows
public java.lang.String findConfigHistoryFetchRows()
从接口复制的说明:HistoryConfigInfoMapperList configuration history change record. The default sql: SELECT nid,data_id,group_id,tenant_id,app_name,src_ip,src_user,op_type,gmt_create,gmt_modified FROM his_config_info WHERE data_id = ? AND group_id = ? AND tenant_id = ? ORDER BY nid DESC- 指定者:
findConfigHistoryFetchRows在接口中HistoryConfigInfoMapper- 返回:
- The sql of listing configuration history change record.
-
detailPreviousConfigHistory
public java.lang.String detailPreviousConfigHistory()
从接口复制的说明:HistoryConfigInfoMapperGet previous config detail. The default sql: SELECT nid,data_id,group_id,tenant_id,app_name,content,md5,src_user,src_ip,op_type,gmt_create,gmt_modified FROM his_config_info WHERE nid = (SELECT max(nid) FROM his_config_info WHERE id = ?)- 指定者:
detailPreviousConfigHistory在接口中HistoryConfigInfoMapper- 返回:
- The sql of getting previous config detail.
-
getTableName
public java.lang.String getTableName()
从接口复制的说明:MapperGet the name of table.- 指定者:
getTableName在接口中Mapper- 返回:
- The name of table.
-
getDataSource
public java.lang.String getDataSource()
从接口复制的说明:MapperGet the datasource name.- 指定者:
getDataSource在接口中Mapper- 返回:
- The name of datasource.
-
-