类 SQLBuidler
java.lang.Object
cn.virens.common.mapper.example.util.SQLBuidler
- 所有已实现的接口:
Serializable
SQL构建器
- 作者:
- virens
- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明append(SQLBuidler buidler) 添加SQL构建器添加字符串数组添加字符串数组(添加换行符)assertNotNull(String variable) 生成参数验证代码choose(SQLBuidler.SQLSupplier content) 生成 choose 标签包装的 xml 结构chooseOther(SQLBuidler.SQLSupplier content) 生成 otherwise 标签包装的 xml 结构chooseWhen(String test, SQLBuidler.SQLSupplier content) 生成 when 标签包装的 xml 结构foreach(String collection, String item, SQLBuidler.SQLSupplier content) 生成 foreach 标签包装的 xml 结构foreach(String collection, String item, String separator, SQLBuidler.SQLSupplier content) 生成 foreach 标签包装的 xml 结构foreach(String collection, String item, String separator, String open, String close, SQLBuidler.SQLSupplier content) 生成 foreach 标签包装的 xml 结构foreach(String collection, String item, String separator, String open, String close, String index, SQLBuidler.SQLSupplier content) 生成 foreach 标签包装的 xml 结构ifEmpty(String variable, SQLBuidler.SQLSupplier content) 生成 if 标签包装的 xml 结构(属性为空)ifNotEmpty(String variable, SQLBuidler.SQLSupplier content) 生成 if 标签包装的 xml 结构(属性不为空)ifTest(String test, SQLBuidler.SQLSupplier content) 生成 if 标签包装的 xml 结构static Stringstatic StringisNotEmpty(String variable) static Stringstatic SQLBuidlerset(SQLBuidler.SQLSupplier content) 生成 set 标签包装的 xml 结构生成 set 标签包装的 xml 结构toString()trim(String prefix, String prefixOverrides, SQLBuidler.SQLSupplier content) 生成 trim 标签包装的 xml 结构trim(String start, String prefix, String prefixOverrides, SQLBuidler.SQLSupplier content) 生成 trim 标签包装的 xml 结构trim(String prefix, String suffix, String prefixOverrides, String suffixOverrides, SQLBuidler.SQLSupplier content) 生成 trim 标签包装的 xml 结构trim(String start, String prefix, String suffix, String prefixOverrides, String suffixOverrides, SQLBuidler.SQLSupplier content) 生成 trim 标签包装的 xml 结构
-
构造器详细资料
-
SQLBuidler
-
-
方法详细资料
-
append
添加字符串数组- 参数:
strArray- 字符串数组- 返回:
- SQL构建器
-
appendLE
添加字符串数组(添加换行符)- 参数:
strArray- 字符串数组- 返回:
- SQL构建器
-
append
添加SQL构建器- 参数:
buidler- SQL构建器- 返回:
- SQL构建器
-
trim
public SQLBuidler trim(String prefix, String prefixOverrides, SQLBuidler.SQLSupplier content) throws APIException 生成 trim 标签包装的 xml 结构- 参数:
prefix- 前缀prefixOverrides- 前缀替换内容content- 标签中的内容- 返回:
- trim 标签包装的 xml 结构
- 抛出:
APIException
-
trim
public SQLBuidler trim(String start, String prefix, String prefixOverrides, SQLBuidler.SQLSupplier content) throws APIException 生成 trim 标签包装的 xml 结构- 参数:
start- SQL 前半段prefix- 前缀prefixOverrides- 前缀替换内容content- 标签中的内容- 返回:
- trim 标签包装的 xml 结构
- 抛出:
APIException
-
trim
public SQLBuidler trim(String prefix, String suffix, String prefixOverrides, String suffixOverrides, SQLBuidler.SQLSupplier content) throws APIException 生成 trim 标签包装的 xml 结构- 参数:
prefix- 前缀suffix- 后缀prefixOverrides- 前缀替换内容suffixOverrides- 后缀替换内容content- 标签中的内容- 返回:
- trim 标签包装的 xml 结构
- 抛出:
APIException
-
trim
public SQLBuidler trim(String start, String prefix, String suffix, String prefixOverrides, String suffixOverrides, SQLBuidler.SQLSupplier content) throws APIException 生成 trim 标签包装的 xml 结构- 参数:
start- SQL 前半段prefix- 前缀suffix- 后缀prefixOverrides- 前缀替换内容suffixOverrides- 后缀替换内容content- 标签中的内容- 返回:
- trim 标签包装的 xml 结构
- 抛出:
APIException
-
foreach
public SQLBuidler foreach(String collection, String item, SQLBuidler.SQLSupplier content) throws APIException 生成 foreach 标签包装的 xml 结构- 参数:
collection- 遍历的对象item- 对象名content- 标签中的内容- 返回:
- foreach 标签包装的 xml 结构
- 抛出:
APIException
-
foreach
public SQLBuidler foreach(String collection, String item, String separator, SQLBuidler.SQLSupplier content) throws APIException 生成 foreach 标签包装的 xml 结构- 参数:
collection- 遍历的对象item- 对象名separator- 连接符content- 标签中的内容- 返回:
- foreach 标签包装的 xml 结构
- 抛出:
APIException
-
foreach
public SQLBuidler foreach(String collection, String item, String separator, String open, String close, SQLBuidler.SQLSupplier content) throws APIException 生成 foreach 标签包装的 xml 结构- 参数:
collection- 遍历的对象item- 对象名separator- 连接符open- 开始符号close- 结束符号content- 标签中的内容- 返回:
- foreach 标签包装的 xml 结构
- 抛出:
APIException
-
foreach
public SQLBuidler foreach(String collection, String item, String separator, String open, String close, String index, SQLBuidler.SQLSupplier content) throws APIException 生成 foreach 标签包装的 xml 结构- 参数:
collection- 遍历的对象item- 对象名separator- 连接符open- 开始符号close- 结束符号index- 索引名(list为索引,map为key)content- 标签中的内容- 返回:
- foreach 标签包装的 xml 结构
- 抛出:
APIException
-
choose
生成 choose 标签包装的 xml 结构- 参数:
content- 标签中的内容- 返回:
- choose 标签包装的 xml 结构
- 抛出:
APIException
-
chooseOther
生成 otherwise 标签包装的 xml 结构- 参数:
content- 标签中的内容- 返回:
- otherwise 标签包装的 xml 结构
- 抛出:
APIException
-
chooseWhen
生成 when 标签包装的 xml 结构- 参数:
test- when 的判断条件content- 标签中的内容- 返回:
- when 标签包装的 xml 结构
- 抛出:
APIException
-
set
生成 set 标签包装的 xml 结构- 参数:
content- 标签中的内容- 返回:
- set 标签包装的 xml 结构
- 抛出:
APIException
-
set
生成 set 标签包装的 xml 结构- 参数:
content- 标签中的内容- 返回:
- set 标签包装的 xml 结构
- 抛出:
APIException
-
ifTest
生成 if 标签包装的 xml 结构- 参数:
test- if 的判断条件content- 标签中的内容- 返回:
- if 标签包装的 xml 结构
- 抛出:
APIException
-
ifEmpty
生成 if 标签包装的 xml 结构(属性为空)- 参数:
variable- if 的判断变量content- 标签中的内容- 返回:
- if 标签包装的 xml 结构
- 抛出:
APIException
-
ifNotEmpty
生成 if 标签包装的 xml 结构(属性不为空)- 参数:
variable- if 的判断变量content- 标签中的内容- 返回:
- if 标签包装的 xml 结构
- 抛出:
APIException
-
assertNotNull
生成参数验证代码- 参数:
variable- 判断变量- 返回:
- 抛出:
APIException
-
toString
- 覆盖:
toString在类中Object- 抛出:
APIException
-
isNotEmpty
- 抛出:
APIException
-
isEmpty
- 抛出:
APIException
-
notNull
- 抛出:
APIException
-
of
-