构造器和说明 |
---|
SqlBuilder() |
限定符和类型 | 方法和说明 |
---|---|
SqlBuilder |
append(SqlBuilder sqlPart)
添加SQL部分
|
SqlBuilder |
append(java.lang.String sql,
java.lang.Object... args)
添加SQL
|
SqlBuilder |
appendIf(boolean condition,
java.lang.String sql,
java.lang.Object... args)
添加SQL
|
SqlBuilder |
backup()
备分状态
|
void |
clear()
清空
|
java.lang.Object[] |
getArgs()
获取参数
|
java.lang.String |
getSql()
获取代码
|
int |
indexOf(java.lang.String str)
查找位置
|
SqlBuilder |
insert(int offset,
java.lang.String sql,
java.lang.Object... args)
插入到某个位置前面
|
SqlBuilder |
insert(SqlBuilder part)
插入SQL部分
|
SqlBuilder |
insert(java.lang.String sql,
java.lang.Object... args)
插入到最前面
|
int |
length()
长度
|
SqlBuilder |
remove(int start,
int length)
移除字符
|
SqlBuilder |
removeLast()
移除最后字符
|
SqlBuilder |
restore()
还原状态
|
java.lang.String |
substring(int start)
截取子字符串
|
java.lang.String |
substring(int start,
int end)
截取子字符串
|
java.lang.String |
toString() |
SqlBuilder |
trimEnd(java.lang.String str)
修剪未尾
|
SqlBuilder |
trimStart(java.lang.String str)
修剪开头
|
public int indexOf(java.lang.String str)
public java.lang.String substring(int start)
public java.lang.String substring(int start, int end)
public int length()
public void clear()
public SqlBuilder backup()
public SqlBuilder restore()
public SqlBuilder insert(int offset, java.lang.String sql, java.lang.Object... args)
public SqlBuilder insert(java.lang.String sql, java.lang.Object... args)
public SqlBuilder insert(SqlBuilder part)
public SqlBuilder appendIf(boolean condition, java.lang.String sql, java.lang.Object... args)
public SqlBuilder append(java.lang.String sql, java.lang.Object... args)
public SqlBuilder append(SqlBuilder sqlPart)
public SqlBuilder remove(int start, int length)
public SqlBuilder removeLast()
public SqlBuilder trimEnd(java.lang.String str)
public SqlBuilder trimStart(java.lang.String str)
public java.lang.String toString()
toString
在类中 java.lang.Object