Class DeleteSqlBuilder
java.lang.Object
cn.dinodev.spring.data.sql.builder.WhereSql<DeleteSqlBuilder>
cn.dinodev.spring.data.sql.builder.DeleteSqlBuilder
- All Implemented Interfaces:
SqlBuilder
SQL DELETE语句构建器
用于构建DELETE SQL语句的Builder类,支持WHERE条件等子句
- Author:
- Cody Lu
-
Field Summary
Fields inherited from class cn.dinodev.spring.data.sql.builder.WhereSql
EMPTY_PARAMS, tables, whereColumns, whereParams, withName, withSql -
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
-
Method Details
-
create
根据表名创建DeleteSqlBuilder实例, 如下写法都是合法的:-
"table1"-
"table1 as t1"- Parameters:
table- 表名- Returns:
- DeleteSqlBuilder实例
-
create
创建DeleteSqlBuilder实例并设置表名和别名-
生成的sql片段为:table AS alias- Parameters:
table- 表名alias- 别名- Returns:
- DeleteSqlBuilder实例
-
getSql
Description copied from interface:SqlBuilder获取生成的sql语句- Returns:
-
getParams
Description copied from interface:SqlBuilder获取sql语句需要的参数数组- Returns:
-
toString
-