public class DeleteSqlImpl extends SqlLogImpl implements DeleteSql, UseAliasSupport, PrepareStatementBuildSupport
Constructor and Description |
---|
DeleteSqlImpl(Mapper<?> mapper) |
Modifier and Type | Method and Description |
---|---|
DeleteSql |
andWhere(CriteriaItem item)
`WHERE AND` 语句
|
DeleteSql |
andWhere(List<Criteria> criterion)
`WHERE AND` 语句
|
DeleteSql |
complexFullJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`FULL JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
DeleteSql |
complexInnerJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`INNER JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
DeleteSql |
complexLeftJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`LEFT JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
DeleteSql |
complexRightJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`RIGHT JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
DeleteSql |
delete(List<Table> tables)
`DELETE t1.*, t2.* ...` 语句, t1, t2表示"表别名"
|
DeleteSql |
delete(Table table)
`DELETE t1.*` 语句, t1表示"表别名"
|
DeleteSql |
deleteFrom(List<Table> tables)
删除表,item和from同时设置
|
DeleteSql |
deleteFrom(Table table)
删除表,item和from同时设置
|
DeleteSql |
deleteFromDefault()
删除表,从mapper获取
|
int |
executeDelete()
执行删除
|
DeleteSql |
from(List<Table> tables)
`FROM table1 t1, table2 t2...` 语句, t1, t2表示"表别名"
|
DeleteSql |
from(Table table)
`FROM table1 t1` 语句, t1表示"表别名"
|
DeleteSql |
fullJoinOn(Table table,
List<Column> columnPairs)
`FULL JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
PrepareStatement |
getPrepareStatement()
获取预查询SQL
|
DeleteSql |
innerJoinOn(Table table,
List<Column> columnPairs)
`INNER JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
boolean |
isUseAlias()
是否使用别名
|
DeleteSql |
joinOn(JoinOn joinOn)
JoinOn操作
|
DeleteSql |
joinOn(List<JoinOn> joinOns)
JoinOn操作
|
DeleteSql |
joinOn(Table table,
List<Column> columnPairs)
`JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
DeleteSql |
leftJoinOn(Table table,
List<Column> columnPairs)
`LEFT JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
DeleteSql |
orWhere(CriteriaItem item)
`WHERE OR`语句
|
DeleteSql |
orWhere(List<Criteria> criterion)
`WHERE OR`语句
|
DeleteSql |
rightJoinOn(Table table,
List<Column> columnPairs)
`RIGHT JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
DeleteSql |
where(Criteria criteria)
`WHERE` 语句
|
DeleteSql |
where(List<Criteria> criterion)
`WHERE` 语句
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, append, getPrepareStatement, getPrepareStatement, getPrepareStatement, getPrepareStatement
public DeleteSqlImpl(Mapper<?> mapper)
public DeleteSql delete(Table table)
DeleteSupport
delete
in interface DeleteSupport<DeleteSql>
table
- 表对象Table
public DeleteSql delete(List<Table> tables)
DeleteSupport
delete
in interface DeleteSupport<DeleteSql>
tables
- 表对象列表Table
public DeleteSql from(Table table)
FromSupport
from
in interface FromSupport<DeleteSql>
table
- 表对象Table
public DeleteSql from(List<Table> tables)
FromSupport
from
in interface FromSupport<DeleteSql>
tables
- 表对象列表Table
public DeleteSql joinOn(JoinOn joinOn)
JoinOnSupport
joinOn
in interface JoinOnSupport<DeleteSql>
joinOn
- JoinOn操作public DeleteSql joinOn(List<JoinOn> joinOns)
JoinOnSupport
joinOn
in interface JoinOnSupport<DeleteSql>
joinOns
- JoinOn操作列表public DeleteSql joinOn(Table table, List<Column> columnPairs)
JoinOnSupport
joinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象columnPairs
- on相关的"列-对"Column
public DeleteSql leftJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
leftJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public DeleteSql rightJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
rightJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public DeleteSql fullJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
fullJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public DeleteSql innerJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
innerJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public DeleteSql complexLeftJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexLeftJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象criteriaItems
- 条件public DeleteSql complexRightJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexRightJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象criteriaItems
- 条件public DeleteSql complexFullJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexFullJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象criteriaItems
- 条件public DeleteSql complexInnerJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexInnerJoinOn
in interface JoinOnSupport<DeleteSql>
table
- 需要join的表对象criteriaItems
- 条件public DeleteSql where(Criteria criteria)
WhereSupport
where
in interface WhereSupport<DeleteSql>
criteria
- WHERE相关条件Criteria
public DeleteSql where(List<Criteria> criterion)
WhereSupport
where
in interface WhereSupport<DeleteSql>
criterion
- WHERE相关条件列表Criteria
public DeleteSql andWhere(CriteriaItem item)
WhereSupport
andWhere
in interface WhereSupport<DeleteSql>
item
- WHERE相关条件Criteria
public DeleteSql andWhere(List<Criteria> criterion)
WhereSupport
andWhere
in interface WhereSupport<DeleteSql>
criterion
- WHERE相关条件列表Criteria
public DeleteSql orWhere(CriteriaItem item)
WhereSupport
orWhere
in interface WhereSupport<DeleteSql>
item
- WHERE相关条件Criteria
public DeleteSql orWhere(List<Criteria> criterion)
WhereSupport
orWhere
in interface WhereSupport<DeleteSql>
criterion
- WHERE相关条件列表Criteria
public boolean isUseAlias()
UseAliasSupport
isUseAlias
in interface UseAliasSupport
public PrepareStatement getPrepareStatement()
PrepareStatementSupport
getPrepareStatement
in interface PrepareStatementSupport
public int executeDelete()
DeleteSql
executeDelete
in interface DeleteSql
public DeleteSql deleteFromDefault()
DeleteSql
deleteFromDefault
in interface DeleteSql
public DeleteSql deleteFrom(Table table)
DeleteSql
deleteFrom
in interface DeleteSql
table
- 表Copyright © 2020 IBIT程序猿. All rights reserved.