public final class Update extends ConditionalQuery<Update>
UPDATE query.conditions| Constructor and Description |
|---|
Update() |
| Modifier and Type | Method and Description |
|---|---|
List<Object> |
getParams() |
String |
getSQL() |
Update |
value(@NonNull String column,
@NonNull Object value)
Adds a value to be set for the specified column.
|
Update |
valueExpr(@NonNull String column,
@NonNull String expr,
Object... params)
Adds an SQL expression value to be set for the specified column.
|
Update |
valueNull(@NonNull String column)
Adds a
NULL value for the specified column. |
Update |
valueNullable(@NonNull String column,
Object value)
If specified value is null, adds a
NULL value for the specified column,
otherwise adds specified value as value for the column. |
appendConditions, where, whereExpr, whereNull, whereNullableprepareStatement, prepareStatement, query, queryAndMap, queryAndMapAll, update, update, updateWithKeys, updateWithKeysAndMap, updateWithKeysAndMapAllpublic Update value(@NonNull @NonNull String column, @NonNull @NonNull Object value)
column - Column name.value - Value.public Update valueExpr(@NonNull @NonNull String column, @NonNull @NonNull String expr, @NonNull Object... params)
column - Column name.expr - SQL expression.params - Expression parameters (for filling in placeholders ?).public Update valueNull(@NonNull @NonNull String column)
NULL value for the specified column.column - Column name.public Update valueNullable(@NonNull @NonNull String column, Object value)
NULL value for the specified column,
otherwise adds specified value as value for the column.column - Column name.value - Nullable value.public String getSQL()
getSQL in class AbstractQuerypublic List<Object> getParams()
getParams in class AbstractQuery? in the SQL query).Copyright © 2021. All rights reserved.