类 ConfigInfoMapperByDerby
- java.lang.Object
-
- com.alibaba.nacos.plugin.datasource.mapper.AbstractMapper
-
- com.alibaba.nacos.plugin.datasource.impl.derby.ConfigInfoMapperByDerby
-
- 所有已实现的接口:
ConfigInfoMapper,Mapper
public class ConfigInfoMapperByDerby extends AbstractMapper implements ConfigInfoMapper
The derby implementation of ConfigInfoMapper.- 作者:
- hyx
-
-
构造器概要
构造器 构造器 说明 ConfigInfoMapperByDerby()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.StringconfigInfoLikeTenantCount()Returns the number of configuration items.java.lang.StringfindAllConfigInfo4Export(java.util.List<java.lang.Long> ids, java.util.Map<java.lang.String,java.lang.String> params)query all configuration information according to group, appName, tenant (for export).java.lang.StringfindAllConfigInfoBaseFetchRows(int startRow, int pageSize)Query all configuration information by page.java.lang.StringfindAllConfigInfoFetchRows(int startRow, int pageSize)Query all configuration information by page.java.lang.StringfindAllConfigInfoFragment(int startRow, int pageSize)Query all config info.java.lang.StringfindAllConfigKey(int startRow, int pageSize)Query all configuration information by page.java.lang.StringfindAllDataIdAndGroup()Find all dataId and group.java.lang.StringfindChangeConfig()Query change config.java.lang.StringfindChangeConfigCountRows(java.util.Map<java.lang.String,java.lang.String> params, java.sql.Timestamp startTime, java.sql.Timestamp endTime)Get the count of config information.java.lang.StringfindChangeConfigFetchRows(java.util.Map<java.lang.String,java.lang.String> params, java.sql.Timestamp startTime, java.sql.Timestamp endTime, int startRow, int pageSize, long lastMaxId)According to the time period and configuration conditions to query the eligible configuration.java.lang.StringfindConfigInfo4PageCountRows(java.util.Map<java.lang.String,java.lang.String> params)find the count of config info.java.lang.StringfindConfigInfo4PageFetchRows(java.util.Map<java.lang.String,java.lang.String> params, int startRow, int pageSize)find config info.java.lang.StringfindConfigInfoBaseByGroupFetchRows(int startRow, int pageSize)Query configuration information based on group.java.lang.StringfindConfigInfoBaseLikeCountRows(java.util.Map<java.lang.String,java.lang.String> params)Get the count of config information.java.lang.StringfindConfigInfoBaseLikeFetchRows(java.util.Map<java.lang.String,java.lang.String> params, int startRow, int pageSize)Get the config information.java.lang.StringfindConfigInfoByAppCountRows()Query the count of config_info by tenantId and appName.java.lang.StringfindConfigInfoByAppFetchRows(int startRow, int pageSize)Query configuration information based on group.java.lang.StringfindConfigInfoLike4PageCountRows(java.util.Map<java.lang.String,java.lang.String> params)Query config info count.java.lang.StringfindConfigInfoLike4PageFetchRows(java.util.Map<java.lang.String,java.lang.String> params, int startRow, int pageSize)Query config info.java.lang.StringfindConfigInfosByIds(int idSize)find ConfigInfo by ids.java.lang.StringfindConfigMaxId()Get the maxId.java.lang.StringgetDataSource()Get the datasource name.java.lang.StringgetGroupIdList(int startRow, int pageSize)Get group id list by page.java.lang.StringgetTableName()Get the name of table.java.lang.StringgetTenantIdList(int startRow, int pageSize)Get tenant id list by page.java.lang.StringlistGroupKeyMd5ByPageFetchRows(int startRow, int pageSize)list group key md5 by page.java.lang.StringremoveConfigInfoByIdsAtomic(int size)Remove configuration; database atomic operation, minimum SQL action, no business encapsulation.java.lang.StringupdateConfigInfoAtomicCas()Update configuration; database atomic operation, minimum SQL action, no business encapsulation.-
从类继承的方法 com.alibaba.nacos.plugin.datasource.mapper.AbstractMapper
count, delete, getPrimaryKeyGeneratedKeys, insert, select, update
-
-
-
-
字段详细资料
-
DATA_ID
private static final java.lang.String DATA_ID
- 另请参阅:
- 常量字段值
-
GROUP
private static final java.lang.String GROUP
- 另请参阅:
- 常量字段值
-
APP_NAME
private static final java.lang.String APP_NAME
- 另请参阅:
- 常量字段值
-
CONTENT
private static final java.lang.String CONTENT
- 另请参阅:
- 常量字段值
-
TENANT
private static final java.lang.String TENANT
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
findConfigMaxId
public java.lang.String findConfigMaxId()
从接口复制的说明:ConfigInfoMapperGet the maxId. The default sql: SELECT max(id) FROM config_info- 指定者:
findConfigMaxId在接口中ConfigInfoMapper- 返回:
- the sql of getting the maxId.
-
findAllDataIdAndGroup
public java.lang.String findAllDataIdAndGroup()
从接口复制的说明:ConfigInfoMapperFind all dataId and group. The default sql: SELECT DISTINCT data_id, group_id FROM config_info- 指定者:
findAllDataIdAndGroup在接口中ConfigInfoMapper- 返回:
- The sql of finding all dataId and group.
-
findConfigInfoByAppCountRows
public java.lang.String findConfigInfoByAppCountRows()
从接口复制的说明:ConfigInfoMapperQuery the count of config_info by tenantId and appName. The default sql: SELECT count(*) FROM config_info WHERE tenant_id LIKE ? AND app_name=?- 指定者:
findConfigInfoByAppCountRows在接口中ConfigInfoMapper- 返回:
- The sql of querying the count of config_info.
-
findConfigInfoByAppFetchRows
public java.lang.String findConfigInfoByAppFetchRows(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperQuery 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=?- 指定者:
findConfigInfoByAppFetchRows在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- The sql of querying configration information based on group.
-
configInfoLikeTenantCount
public java.lang.String configInfoLikeTenantCount()
从接口复制的说明:ConfigInfoMapperReturns the number of configuration items. The default sql: SELECT count(*) FROM config_info WHERE tenant_id LIKE ?- 指定者:
configInfoLikeTenantCount在接口中ConfigInfoMapper- 返回:
- The sql of querying the number of configuration items.
-
getTenantIdList
public java.lang.String getTenantIdList(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperGet tenant id list by page. The default sql: SELECT tenant_id FROM config_info WHERE tenant_id != '' GROUP BY tenant_id LIMIT startRow, pageSize- 指定者:
getTenantIdList在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- The sql of getting tenant id list by page.
-
getGroupIdList
public java.lang.String getGroupIdList(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperGet group id list by page. The default sql: SELECT group_id FROM config_info WHERE tenant_id ='' GROUP BY group_id LIMIT startRow, pageSize- 指定者:
getGroupIdList在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- The sql of getting group id list by page.
-
findAllConfigKey
public java.lang.String findAllConfigKey(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperQuery 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 "- 指定者:
findAllConfigKey在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- The sql of querying all configuration information.
-
findAllConfigInfoBaseFetchRows
public java.lang.String findAllConfigInfoBaseFetchRows(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperQuery 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- 指定者:
findAllConfigInfoBaseFetchRows在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- The sql of querying all configuration information by page.
-
findAllConfigInfoFragment
public java.lang.String findAllConfigInfoFragment(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperQuery all config info. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,md5,gmt_modified,type,encrypted_data_key FROM config_info WHERE id > ? ORDER BY id ASC LIMIT startRow,pageSize- 指定者:
findAllConfigInfoFragment在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- The sql of querying all config info.
-
findChangeConfig
public java.lang.String findChangeConfig()
从接口复制的说明:ConfigInfoMapperQuery change config. The default sql: SELECT data_id, group_id, tenant_id, app_name, content, gmt_modified,encrypted_data_key FROM config_info WHERE gmt_modified >=? AND gmt_modified <= ?- 指定者:
findChangeConfig在接口中ConfigInfoMapper- 返回:
- The sql of querying change config.
-
findChangeConfigCountRows
public java.lang.String findChangeConfigCountRows(java.util.Map<java.lang.String,java.lang.String> params, java.sql.Timestamp startTime, java.sql.Timestamp endTime)从接口复制的说明:ConfigInfoMapperGet the count of config information. The default sql: SELECT count(*) FROM config_info WHERE ...- 指定者:
findChangeConfigCountRows在接口中ConfigInfoMapper- 参数:
params- The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime, endTime, content), the value is the key's value.startTime- start timeendTime- end time- 返回:
- The sql of getting the count of config information.
-
findChangeConfigFetchRows
public java.lang.String findChangeConfigFetchRows(java.util.Map<java.lang.String,java.lang.String> params, java.sql.Timestamp startTime, java.sql.Timestamp endTime, int startRow, int pageSize, long lastMaxId)从接口复制的说明:ConfigInfoMapperAccording 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,content,type,md5,gmt_modified FROM config_info WHERE ...- 指定者:
findChangeConfigFetchRows在接口中ConfigInfoMapper- 参数:
params- The map of params, the key is the parameter name(dataId, groupId, tenantId, appName, startTime, endTime, content), the value is the key's value.startTime- start timeendTime- end timestartRow- The start index.pageSize- The size of page.lastMaxId- The max id.- 返回:
- The sql of getting config information according to the time period.
-
listGroupKeyMd5ByPageFetchRows
public java.lang.String listGroupKeyMd5ByPageFetchRows(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperlist 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- 指定者:
listGroupKeyMd5ByPageFetchRows在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- The sql of listing group key md5 by page.
-
findAllConfigInfo4Export
public java.lang.String findAllConfigInfo4Export(java.util.List<java.lang.Long> ids, java.util.Map<java.lang.String,java.lang.String> params)从接口复制的说明:ConfigInfoMapperquery 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 ...- 指定者:
findAllConfigInfo4Export在接口中ConfigInfoMapper- 参数:
ids- idsparams- 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
public java.lang.String findConfigInfoBaseLikeCountRows(java.util.Map<java.lang.String,java.lang.String> params)
从接口复制的说明:ConfigInfoMapperGet the count of config information. The default sql: SELECT count(*) FROM config_info WHERE ...- 指定者:
findConfigInfoBaseLikeCountRows在接口中ConfigInfoMapper- 参数:
params- 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
public java.lang.String findConfigInfoBaseLikeFetchRows(java.util.Map<java.lang.String,java.lang.String> params, int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperGet the config information. The default sql: SELECT id,data_id,group_id,tenant_id,content FROM config_info WHERE ...- 指定者:
findConfigInfoBaseLikeFetchRows在接口中ConfigInfoMapper- 参数:
params- The map of params, the key is the parameter name(dataId, groupId, tenant_id, content), the value is the key's value.startRow- The start index.pageSize- The size of page.- 返回:
- The sql of getting the config information.
-
findConfigInfo4PageCountRows
public java.lang.String findConfigInfo4PageCountRows(java.util.Map<java.lang.String,java.lang.String> params)
从接口复制的说明:ConfigInfoMapperfind the count of config info. The default sql: SELECT count(*) FROM config_info ...- 指定者:
findConfigInfo4PageCountRows在接口中ConfigInfoMapper- 参数:
params- The mpa of dataId, groupId and appName.- 返回:
- The count of config info.
-
findConfigInfo4PageFetchRows
public java.lang.String findConfigInfo4PageFetchRows(java.util.Map<java.lang.String,java.lang.String> params, int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperfind config info. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,type,encrypted_data_key FROM config_info ...- 指定者:
findConfigInfo4PageFetchRows在接口中ConfigInfoMapper- 参数:
params- The mpa of dataId, groupId and appName.startRow- The start index.pageSize- The size of page.- 返回:
- The sql of finding config info.
-
findConfigInfoBaseByGroupFetchRows
public java.lang.String findConfigInfoBaseByGroupFetchRows(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperQuery configuration information based on group. The default sql: SELECT id,data_id,group_id,content FROM config_info WHERE group_id=? AND tenant_id=?- 指定者:
findConfigInfoBaseByGroupFetchRows在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- Query configuration information based on group.
-
findConfigInfoLike4PageCountRows
public java.lang.String findConfigInfoLike4PageCountRows(java.util.Map<java.lang.String,java.lang.String> params)
从接口复制的说明:ConfigInfoMapperQuery config info count. The default sql: SELECT count(*) FROM config_info ...- 指定者:
findConfigInfoLike4PageCountRows在接口中ConfigInfoMapper- 参数:
params- The map of dataId, group, appName, content- 返回:
- The sql of querying config info count
-
findConfigInfoLike4PageFetchRows
public java.lang.String findConfigInfoLike4PageFetchRows(java.util.Map<java.lang.String,java.lang.String> params, int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperQuery config info. The default sql: SELECT id,data_id,group_id,tenant_id,app_name,content,encrypted_data_key FROM config_info ...- 指定者:
findConfigInfoLike4PageFetchRows在接口中ConfigInfoMapper- 参数:
params- The map of dataId, group, appName, contentstartRow- The start index.pageSize- The size of page.- 返回:
- The sql of querying config info
-
findAllConfigInfoFetchRows
public java.lang.String findAllConfigInfoFetchRows(int startRow, int pageSize)从接口复制的说明:ConfigInfoMapperQuery 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- 指定者:
findAllConfigInfoFetchRows在接口中ConfigInfoMapper- 参数:
startRow- The start index.pageSize- The size of page.- 返回:
- Query all configuration information by page.
-
findConfigInfosByIds
public java.lang.String findConfigInfosByIds(int idSize)
从接口复制的说明:ConfigInfoMapperfind ConfigInfo by ids. The default sql: SELECT ID,data_id,group_id,tenant_id,app_name,content,md5 FROM config_info WHERE id IN (...)- 指定者:
findConfigInfosByIds在接口中ConfigInfoMapper- 参数:
idSize- the size of ids.- 返回:
- find ConfigInfo by ids.
-
removeConfigInfoByIdsAtomic
public java.lang.String removeConfigInfoByIdsAtomic(int size)
从接口复制的说明:ConfigInfoMapperRemove configuration; database atomic operation, minimum SQL action, no business encapsulation.- 指定者:
removeConfigInfoByIdsAtomic在接口中ConfigInfoMapper- 参数:
size- The size of ids.- 返回:
- The sql of removing configuration.
-
updateConfigInfoAtomicCas
public java.lang.String updateConfigInfoAtomicCas()
从接口复制的说明:ConfigInfoMapperUpdate 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='')- 指定者:
updateConfigInfoAtomicCas在接口中ConfigInfoMapper- 返回:
- The sql of updating configuration cas.
-
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.
-
-