Class DeleteSqlBuilder
java.lang.Object
cn.dinodev.spring.data.sql.builder.WhereSql<DeleteSqlBuilder>
cn.dinodev.spring.data.sql.builder.DeleteSqlBuilder
- All Implemented Interfaces:
SqlBuilder
- Author:
- Cody Lu
-
Field Summary
Fields inherited from class cn.dinodev.spring.data.sql.builder.WhereSql
EMPTY_PARAMS, tables, whereColumns, whereParams, withName, withSql -
Constructor Summary
ConstructorsConstructorDescriptionDeleteSqlBuilder(String table) 根据表名构造, 如下写法都是合法的:DeleteSqlBuilder(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
-
Constructor Details
-
DeleteSqlBuilder
根据表名构造, 如下写法都是合法的:-
"table1"-
"table1 as t1"- Parameters:
table-
-
DeleteSqlBuilder
设置表名,更设置表的别名-
生成的sql片段为:table AS alias- Parameters:
table-alias-
-
-
Method Details
-
getSql
Description copied from interface:SqlBuilder获取生成的sql语句- Returns:
-
getParams
Description copied from interface:SqlBuilder获取sql语句需要的参数数组- Returns:
-
toString
-