Class UpdateSqlBuilder
java.lang.Object
cn.dinodev.spring.data.sql.builder.WhereSql<UpdateSqlBuilder>
cn.dinodev.spring.data.sql.builder.UpdateSqlBuilder
- All Implemented Interfaces:
SqlBuilder
- Author:
- Cody Lu
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class cn.dinodev.spring.data.sql.builder.WhereSql
EMPTY_PARAMS, tables, whereColumns, whereParams, withName, withSql -
Constructor Summary
ConstructorsConstructorDescriptionUpdateSqlBuilder(String table) 根据表名构造, 如下写法都是合法的:UpdateSqlBuilder(String table, String alias) 设置表名,更设置表的别名 -
Method Summary
Methods inherited from class cn.dinodev.spring.data.sql.builder.WhereSql
and, and, and, andIf, andIf, andIfNotNull, andIfNotNull, any, any, between, between, endWith, endWith, eq, eqIf, eqIfNotBlank, eqIfNotNull, in, in, in, in, inIf, inIf, isNotNull, isNotNull, isNotNullIf, isNotNullIf, isNull, isNull, isNullIf, isNullIf, like, like, ne, neIf, neIfNotBlank, neIfNotNull, notIn, notIn, notIn, notIn, or, or, or, orIf, orIf, orIfNotNull, orIfNotNull, setThat, some, some, someEndWith, someEndWith, someIf, someIf, someLike, someLike, someStartWith, someStartWith, startWith, startWith, table, where, where, where, whereIf, whereIf, whereIfNotNull, whereIfNotNull, withMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cn.dinodev.spring.data.sql.SqlBuilder
appendList, appendList
-
Field Details
-
updateColumns
-
updateParams
-
-
Constructor Details
-
UpdateSqlBuilder
根据表名构造, 如下写法都是合法的:-
"table1"-
"table1 as t1"- Parameters:
table-
-
UpdateSqlBuilder
设置表名,更设置表的别名-
生成的sql片段为:table AS alias- Parameters:
table-alias-
-
-
Method Details
-
set
-
setIf
-
setIfNotNull
-
set
-
setIf
-
getSql
Description copied from interface:SqlBuilder获取生成的sql语句- Returns:
-
getParams
Description copied from interface:SqlBuilder获取sql语句需要的参数数组- Returns:
-
toString
-