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, waitappend, append, getPrepareStatement, getPrepareStatement, getPrepareStatement, getPrepareStatementpublic UpdateSqlImpl(Mapper<?> mapper)
public boolean isUseAlias()
UseAliasSupportisUseAlias in interface UseAliasSupportpublic UpdateSql update(Table table)
UpdateTableSupportupdate in interface UpdateTableSupport<UpdateSql>table - 表对象Tablepublic UpdateSql update(List<Table> tables)
UpdateTableSupportupdate in interface UpdateTableSupport<UpdateSql>tables - 表对象列表Tablepublic UpdateSql set(SetItem item)
SetSupportset in interface SetSupport<UpdateSql>item - 设置项public UpdateSql set(List<SetItem> items)
SetSupportset in interface SetSupport<UpdateSql>items - 设置项public UpdateSql set(Column column, Object value)
SetSupportset in interface SetSupport<UpdateSql>column - 列value - 值public UpdateSql increaseSet(Column column, Number value)
SetSupportincreaseSet in interface SetSupport<UpdateSql>column - 列value - 值public UpdateSql decreaseSet(Column column, Number value)
SetSupportdecreaseSet in interface SetSupport<UpdateSql>column - 列value - 值public UpdateSql joinOn(JoinOn joinOn)
JoinOnSupportjoinOn in interface JoinOnSupport<UpdateSql>joinOn - JoinOn操作public UpdateSql joinOn(List<JoinOn> joinOns)
JoinOnSupportjoinOn in interface JoinOnSupport<UpdateSql>joinOns - JoinOn操作列表public UpdateSql joinOn(Table table, List<Column> columnPairs)
JoinOnSupportjoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象columnPairs - on相关的"列-对"Columnpublic UpdateSql leftJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportleftJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic UpdateSql rightJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportrightJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic UpdateSql fullJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportfullJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic UpdateSql innerJoinOn(Table table, List<Column> columnPairs)
JoinOnSupportinnerJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象columnPairs - DbColumn pairsColumnpublic UpdateSql complexLeftJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexLeftJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象criteriaItems - 条件public UpdateSql complexRightJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexRightJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象criteriaItems - 条件public UpdateSql complexFullJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexFullJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象criteriaItems - 条件public UpdateSql complexInnerJoinOn(Table table, List<CriteriaItem> criteriaItems)
JoinOnSupportcomplexInnerJoinOn in interface JoinOnSupport<UpdateSql>table - 需要join的表对象criteriaItems - 条件public UpdateSql where(Criteria criteria)
WhereSupportwhere in interface WhereSupport<UpdateSql>criteria - WHERE相关条件Criteriapublic UpdateSql where(List<Criteria> criterion)
WhereSupportwhere in interface WhereSupport<UpdateSql>criterion - WHERE相关条件列表Criteriapublic UpdateSql andWhere(CriteriaItem item)
WhereSupportandWhere in interface WhereSupport<UpdateSql>item - WHERE相关条件Criteriapublic UpdateSql andWhere(List<Criteria> criterion)
WhereSupportandWhere in interface WhereSupport<UpdateSql>criterion - WHERE相关条件列表Criteriapublic UpdateSql orWhere(CriteriaItem item)
WhereSupportorWhere in interface WhereSupport<UpdateSql>item - WHERE相关条件Criteriapublic UpdateSql orWhere(List<Criteria> criterion)
WhereSupportorWhere in interface WhereSupport<UpdateSql>criterion - WHERE相关条件列表Criteriapublic UpdateSql updateDefault()
UpdateSqlupdateDefault in interface UpdateSqlpublic PrepareStatement getPrepareStatement()
PrepareStatementSupportgetPrepareStatement in interface PrepareStatementSupportpublic int executeUpdate()
UpdateSqlexecuteUpdate in interface UpdateSqlCopyright © 2020 IBIT程序猿. All rights reserved.