public class DefaultConfigStore extends Object implements ConfigStore
| 限定符和类型 | 字段和说明 |
|---|---|
protected ConfigChain |
chain |
protected Class |
clazz |
protected List<String> |
excludeColumns |
protected GroupStore |
groups |
protected StreamHandler |
handler |
protected PageNavi |
navi |
protected OrderStore |
orders |
protected List<String> |
queryColumns |
protected Object |
values |
| 构造器和说明 |
|---|
DefaultConfigStore(List<String> configs) |
DefaultConfigStore(long first,
long last)
按起止行数查询
|
DefaultConfigStore(String... configs) |
and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, ands, ands, ands, ands, between, between, between, between, between, compare, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, condition, endWith, endWith, endWith, endWith, endWith, eq, eq, eq, eq, eq, findInSet, findInSet, findInSet, findInSet, findInSet, findInSetAnd, findInSetAnd, findInSetAnd, findInSetAnd, findInSetAnd, findInSetOr, findInSetOr, findInSetOr, findInSetOr, findInSetOr, ge, ge, ge, ge, ge, gt, gt, gt, gt, gt, in, in, in, in, in, le, le, le, le, le, like, like, like, like, like, likePrefix, likePrefix, likePrefix, likePrefix, likePrefix, likeSuffix, likeSuffix, likeSuffix, likeSuffix, likeSuffix, lt, lt, lt, lt, lt, ne, ne, ne, ne, ne, notEndWith, notEndWith, notEndWith, notEndWith, notEndWith, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notLike, notLike, notLikePrefix, notLikePrefix, notLikePrefix, notLikePrefix, notLikePrefix, notLikeSuffix, notLikeSuffix, notLikeSuffix, notLikeSuffix, notLikeSuffix, notStartWith, notStartWith, notStartWith, notStartWith, notStartWith, or, or, or, or, or, or, or, or, or, or, or, or, or, or, or, or, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, ors, param, param, param, param, startWith, startWith, startWith, startWith, startWithprotected StreamHandler handler
protected Class clazz
protected ConfigChain chain
protected PageNavi navi
protected OrderStore orders
protected GroupStore groups
protected Object values
public DefaultConfigStore(String... configs)
public DefaultConfigStore(long first,
long last)
first - 起last - 止public DefaultConfigStore init()
public String toString()
toString 在接口中 ConfigStoretoString 在类中 Objectpublic Config parseConfig(String config)
parseConfig 在接口中 ConfigStoreconfig - configs
"COMPANY_CD:company","NM:nmEn% | NM:nmCn%","STATUS_VALUE:[status]"
"NM:nmEn|NM:nmCn" 生成 NM={nmEn} OR NM = {nmCn}
"NM:nmEn|nmCn" 生成 NM={nmEn} OR NM = {nmCn} nmEn为空时当前条件不生效
"NM:nmEn|{1}"
"NM:nmEn:nmCn" 根据参数值生成NM = {nmEn}或生成 NM={nmCn}public ConfigStore setPageNavi(PageNavi navi)
setPageNavi 在接口中 ConfigStorepublic ConfigStore copyPageNavi(PageNavi navi)
copyPageNavi 在接口中 ConfigStorepublic StreamHandler stream()
stream 在接口中 ConfigStorepublic ConfigStore stream(StreamHandler handler)
stream 在接口中 ConfigStorepublic ConfigStore entityClass(Class clazz)
entityClass 在接口中 ConfigStorepublic Class entityClass()
entityClass 在接口中 ConfigStorepublic ConfigStore scope(long first, long last)
scope 在接口中 ConfigStorefirst - 起last - 止public ConfigStore limit(long offset, int rows)
limit 在接口中 ConfigStoreoffset - 指定第一个返回记录行的偏移量(即从哪一行开始返回) 初始行的偏移量为0rows - 返回具体行数public ConfigStore page(long page, int rows)
page 在接口中 ConfigStorepage - 第page页 下标从1开始rows - 每页rows行public ConfigStore and(Compare.EMPTY_VALUE_SWITCH swt, String text)
ConfigStoreand 在接口中 ConfigStoreswt - 遇到空值处理方式text - 可以是一条原生的SQL查询条件public ConfigStore and(Compare.EMPTY_VALUE_SWITCH swt, Compare compare, String prefix, String var, Object value, boolean overCondition, boolean overValue)
ConfigStoreand 在接口中 ConfigStoreswt - 遇到空值处理方式compare - 匹配方式prefix - 表别名或XML中查询条件的IDvar - XML自定义SQL条件中指定变量赋值或占位符key或列名 在value值为空的情况下 如果以var+开头会生成var is null 如果以++开头当前SQL不执行 这与swt作用一样,不要与swt混用value - 值 可以是集合overCondition - 覆盖相同key并且相同运算符的条件,true在现有条件基础上修改(多个相同key的条件只留下第一个),false:添加新条件overValue - 覆盖相同key并且相同运算符的条件时,是否覆盖条件值,true:删除析来的值 false:原来的值合成新的集合public ConfigStore and(Config conf)
ConfigStoreand 在接口中 ConfigStoreconf - 查询条件public ConfigStore and(ConfigStore configs)
and 在接口中 ConfigStorepublic ConfigStore or(ConfigStore configs)
or 在接口中 ConfigStorepublic ConfigStore or(Config config)
or 在接口中 ConfigStorepublic ConfigStore or(Compare.EMPTY_VALUE_SWITCH swt, String text)
or 在接口中 ConfigStorepublic ConfigStore ors(ConfigStore configs)
ors 在接口中 ConfigStorepublic ConfigStore ors(Compare.EMPTY_VALUE_SWITCH swt, String text)
ors 在接口中 ConfigStorepublic ConfigStore ors(Compare.EMPTY_VALUE_SWITCH swt, Config config)
ors 在接口中 ConfigStorepublic ConfigStore or(Compare.EMPTY_VALUE_SWITCH swt, Compare compare, String prefix, String var, Object value, boolean overCondition, boolean overValue)
ConfigStoreor 在接口中 ConfigStoreswt - 遇到空值处理方式compare - 匹配方式prefix - 自定义查询条件ID或表名表别名var - XML自定义SQL条件中指定变量赋值或占位符key或列名 在value值为空的情况下 如果以var+开头会生成var is null 如果以++开头当前SQL不执行 这与swt作用一样,不要与swt混用value - 值 可以是集合overCondition - 覆盖相同key并且相同运算符的条件,true在现有条件基础上修改(多个相同key的条件只留下第一个),false:添加新条件overValue - 覆盖相同key并且相同运算符的条件时,是否覆盖条件值,true:删除析来的值 false:原来的值合成新的集合public ConfigStore ors(Compare.EMPTY_VALUE_SWITCH swt, Compare compare, String prefix, String var, Object value, boolean overCondition, boolean overValue)
ConfigStoreors 在接口中 ConfigStoreswt - 遇到空值处理方式compare - 匹配方式prefix - 自定义查询条件ID或表名表别名var - XML自定义SQL条件中指定变量赋值或占位符key或列名 在value值为空的情况下 如果以var+开头会生成var is null 如果以++开头当前SQL不执行 这与swt作用一样,不要与swt混用value - 值 可以是集合overCondition - 覆盖相同key并且相同运算符的条件,true在现有条件基础上修改(多个相同key的条件只留下第一个),false:添加新条件overValue - 覆盖相同key并且相同运算符的条件时,是否覆盖条件值,true:删除析来的值 false:原来的值合成新的集合protected void setNaviParam()
public ConfigChain getConfigChain()
getConfigChain 在接口中 ConfigStorepublic ConfigStore order(Order order, boolean override)
order 在接口中 ConfigStoreorder - orderoverride - 如果已存在相同的排序列 是否覆盖public ConfigStore order(Order order)
order 在接口中 ConfigStorepublic ConfigStore order(String column, Order.TYPE type, boolean override)
ConfigStoreorder 在接口中 ConfigStorecolumn - 列名type - ASC|DESCoverride - 如果已存在相同的排序列 是否覆盖public ConfigStore order(String column, Order.TYPE type)
ConfigStoreorder 在接口中 ConfigStorecolumn - 列名type - ASC|DESCpublic ConfigStore order(String column, String type, boolean override)
ConfigStoreorder 在接口中 ConfigStorecolumn - 列名type - ASC|DESCoverride - 如果已存在相同的排序列 是否覆盖public ConfigStore order(String column, String type)
ConfigStoreorder 在接口中 ConfigStorecolumn - 列名type - ASC|DESCpublic ConfigStore order(String order, boolean override)
ConfigStoreorder 在接口中 ConfigStoreorder - 列名+排序方式override - 如果已存在相同的排序列 是否覆盖public ConfigStore order(String order)
order 在接口中 ConfigStoreorder - 列名或原生的SQL 如 ID 或 ID ASC 或 ORDER BY CONVERT(id USING gbk) COLLATE gbk_chinese_ci DESCpublic OrderStore getOrders()
getOrders 在接口中 ConfigStorepublic ConfigStore setOrders(OrderStore orders)
setOrders 在接口中 ConfigStorepublic ConfigStore group(Group group)
group 在接口中 ConfigStoregroup - grouppublic ConfigStore group(String column)
ConfigStoregroup 在接口中 ConfigStorecolumn - 列名public GroupStore getGroups()
getGroups 在接口中 ConfigStorepublic ConfigStore setGroups(GroupStore groups)
setGroups 在接口中 ConfigStorepublic PageNavi getPageNavi()
getPageNavi 在接口中 ConfigStorepublic Config getConfig(String var)
getConfig 在接口中 ConfigStorepublic ConfigStore removeConfig(String var)
removeConfig 在接口中 ConfigStorepublic ConfigStore removeConfig(Config config)
removeConfig 在接口中 ConfigStorepublic List<Object> getConfigValues(String var)
getConfigValues 在接口中 ConfigStorepublic Object getConfigValue(String var)
getConfigValue 在接口中 ConfigStorepublic Config getConfig(String var, Compare compare)
getConfig 在接口中 ConfigStorepublic ConfigStore removeConfig(String var, Compare compare)
removeConfig 在接口中 ConfigStorepublic List<Object> getConfigValues(String var, Compare compare)
getConfigValues 在接口中 ConfigStorepublic Object getConfigValue(String var, Compare compare)
getConfigValue 在接口中 ConfigStorepublic ConfigStore fetch(String... keys)
ConfigStorefetch 在接口中 ConfigStorekeys - keyspublic ConfigStore setTotalLazy(long ms)
setTotalLazy 在接口中 ConfigStorems - 缓存有效期(毫秒)public ConfigStore setValue(Map<String,Object> values)
ConfigStoresetValue 在接口中 ConfigStorevalues - 值public ConfigStore columns(String... columns)
columns 在接口中 ConfigStorecolumns - 需要查询的列public List<String> columns()
columns 在接口中 ConfigStorepublic ConfigStore excludes(String... columns)
ConfigStoreexcludes 在接口中 ConfigStorecolumns - 需要查询的列public List<String> excludes()
excludes 在接口中 ConfigStorepublic boolean isValid()
isValid 在接口中 ConfigStorepublic ConfigStore clone()
public ConfigStore condition(String join, Compare compare, String key, Object... values)
public ConfigStore condition(String join, String compare, String key, String value)
Copyright © 2023. All rights reserved.