public class Update extends QueryBuilder
UPDATE queries.| Modifier | Constructor and Description |
|---|---|
protected |
Update() |
| Modifier and Type | Method and Description |
|---|---|
Query |
build()
Builds a SQL statement and abstracts it in a
Query object ready for execution. |
Update |
set(java.lang.String column,
java.lang.Object value)
Sets the column with the given
value. |
Update |
set(java.lang.String column,
java.lang.Object value,
boolean isIdentifier) |
Update |
table(java.lang.Class<?> table)
Specifies the table that the query updates to.
|
Update |
table(java.lang.Class<?> table,
java.lang.String alias)
Specifies the table that the query updates to.
|
Update |
table(java.lang.String table)
Specifies the table that the query updates to.
|
Update |
table(java.lang.String table,
java.lang.String alias)
Specifies the table that the query updates to.
|
Update |
where(Predicate predicate)
Specifies filter conditions that determine the rows to update.
|
getTableNamepublic Update table(java.lang.Class<?> table)
table - the name of table that the query updates into.Select object for further query construction.public Update table(java.lang.String table)
table - the name of table that the query updates into.Select object for further query construction.public Update table(java.lang.Class<?> table, java.lang.String alias)
table - the name of table that the query updates into.alias - an alias for the table specified.Select object for further query construction.public Update table(java.lang.String table, java.lang.String alias)
table - the name of table that the query updates into.alias - an alias for the table specified.Select object for further query construction.public Update set(java.lang.String column, java.lang.Object value)
value.column - the column to update.value - the value to be updated to the given column.Select object for further query construction.public Update set(java.lang.String column, java.lang.Object value, boolean isIdentifier)
public Update where(Predicate predicate)
predicate - the conditions on which to rows to update.Select object for further query construction.public Query build()
Query object ready for execution.build in class QueryBuilderQuery object ready for execution.