public class UpdateSqlImpl extends SqlLogImpl implements UpdateSql, UseAliasSupport, PrepareStatementBuildSupport
Constructor and Description |
---|
UpdateSqlImpl(Mapper<?> mapper) |
Modifier and Type | Method and Description |
---|---|
UpdateSql |
andWhere(CriteriaItem item)
`WHERE AND` 语句
|
UpdateSql |
andWhere(List<Criteria> criterion)
`WHERE AND` 语句
|
UpdateSql |
complexFullJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`FULL JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
UpdateSql |
complexInnerJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`INNER JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
UpdateSql |
complexLeftJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`LEFT JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
UpdateSql |
complexRightJoinOn(Table table,
List<CriteriaItem> criteriaItems)
`RIGHT JOIN table t1 on t1.column1=t0.column2, t1.column3=t0.column4 AND t1.column5=?`语句
|
UpdateSql |
decreaseSet(Column column,
Number value)
设置自减
|
int |
executeUpdate()
执行更新
|
UpdateSql |
fullJoinOn(Table table,
List<Column> columnPairs)
`FULL JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
PrepareStatement |
getPrepareStatement()
获取预查询SQL
|
UpdateSql |
increaseSet(Column column,
Number value)
设置自增长
|
UpdateSql |
innerJoinOn(Table table,
List<Column> columnPairs)
`INNER JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
boolean |
isUseAlias()
是否使用别名
|
UpdateSql |
joinOn(JoinOn joinOn)
JoinOn操作
|
UpdateSql |
joinOn(List<JoinOn> joinOns)
JoinOn操作
|
UpdateSql |
joinOn(Table table,
List<Column> columnPairs)
`JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
UpdateSql |
leftJoinOn(Table table,
List<Column> columnPairs)
`LEFT JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
UpdateSql |
orWhere(CriteriaItem item)
`WHERE OR`语句
|
UpdateSql |
orWhere(List<Criteria> criterion)
`WHERE OR`语句
|
UpdateSql |
rightJoinOn(Table table,
List<Column> columnPairs)
`RIGHT JOIN table t1 ON t1.column1=t0.column2, t1.column3=t0.column4`语句
|
UpdateSql |
set(Column column,
Object value)
设置具体值
|
UpdateSql |
set(List<SetItem> items)
批量增加设置内容
|
UpdateSql |
set(SetItem item)
增加设置内容
|
UpdateSql |
update(List<Table> tables)
`UPDATE table1 t1, table2 t2...` 语句, t1, t2表示"表别名"
|
UpdateSql |
update(Table table)
`UPDATE table1 t1` 语句, t1表示"表别名"
|
UpdateSql |
updateDefault()
`UPDATE table1 t1` 语句, t1表示"表别名"
|
UpdateSql |
where(Criteria criteria)
`WHERE` 语句
|
UpdateSql |
where(List<Criteria> criterion)
`WHERE` 语句
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, append, getPrepareStatement, getPrepareStatement, getPrepareStatement, getPrepareStatement
public UpdateSqlImpl(Mapper<?> mapper)
public boolean isUseAlias()
UseAliasSupport
isUseAlias
in interface UseAliasSupport
public UpdateSql update(Table table)
UpdateTableSupport
update
in interface UpdateTableSupport<UpdateSql>
table
- 表对象Table
public UpdateSql update(List<Table> tables)
UpdateTableSupport
update
in interface UpdateTableSupport<UpdateSql>
tables
- 表对象列表Table
public UpdateSql set(SetItem item)
SetSupport
set
in interface SetSupport<UpdateSql>
item
- 设置项public UpdateSql set(List<SetItem> items)
SetSupport
set
in interface SetSupport<UpdateSql>
items
- 设置项public UpdateSql set(Column column, Object value)
SetSupport
set
in interface SetSupport<UpdateSql>
column
- 列value
- 值public UpdateSql increaseSet(Column column, Number value)
SetSupport
increaseSet
in interface SetSupport<UpdateSql>
column
- 列value
- 值public UpdateSql decreaseSet(Column column, Number value)
SetSupport
decreaseSet
in interface SetSupport<UpdateSql>
column
- 列value
- 值public UpdateSql joinOn(JoinOn joinOn)
JoinOnSupport
joinOn
in interface JoinOnSupport<UpdateSql>
joinOn
- JoinOn操作public UpdateSql joinOn(List<JoinOn> joinOns)
JoinOnSupport
joinOn
in interface JoinOnSupport<UpdateSql>
joinOns
- JoinOn操作列表public UpdateSql joinOn(Table table, List<Column> columnPairs)
JoinOnSupport
joinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象columnPairs
- on相关的"列-对"Column
public UpdateSql leftJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
leftJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public UpdateSql rightJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
rightJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public UpdateSql fullJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
fullJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public UpdateSql innerJoinOn(Table table, List<Column> columnPairs)
JoinOnSupport
innerJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象columnPairs
- DbColumn pairsColumn
public UpdateSql complexLeftJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexLeftJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象criteriaItems
- 条件public UpdateSql complexRightJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexRightJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象criteriaItems
- 条件public UpdateSql complexFullJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexFullJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象criteriaItems
- 条件public UpdateSql complexInnerJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupport
complexInnerJoinOn
in interface JoinOnSupport<UpdateSql>
table
- 需要join的表对象criteriaItems
- 条件public UpdateSql where(Criteria criteria)
WhereSupport
where
in interface WhereSupport<UpdateSql>
criteria
- WHERE相关条件Criteria
public UpdateSql where(List<Criteria> criterion)
WhereSupport
where
in interface WhereSupport<UpdateSql>
criterion
- WHERE相关条件列表Criteria
public UpdateSql andWhere(CriteriaItem item)
WhereSupport
andWhere
in interface WhereSupport<UpdateSql>
item
- WHERE相关条件Criteria
public UpdateSql andWhere(List<Criteria> criterion)
WhereSupport
andWhere
in interface WhereSupport<UpdateSql>
criterion
- WHERE相关条件列表Criteria
public UpdateSql orWhere(CriteriaItem item)
WhereSupport
orWhere
in interface WhereSupport<UpdateSql>
item
- WHERE相关条件Criteria
public UpdateSql orWhere(List<Criteria> criterion)
WhereSupport
orWhere
in interface WhereSupport<UpdateSql>
criterion
- WHERE相关条件列表Criteria
public UpdateSql updateDefault()
UpdateSql
updateDefault
in interface UpdateSql
public PrepareStatement getPrepareStatement()
PrepareStatementSupport
getPrepareStatement
in interface PrepareStatementSupport
public int executeUpdate()
UpdateSql
executeUpdate
in interface UpdateSql
Copyright © 2020 IBIT程序猿. All rights reserved.