public class UpdateQuery extends BaseCTEQuery<UpdateQuery>
ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Constructor and Description |
---|
UpdateQuery(Object tableStr)
|
UpdateQuery(Table table) |
Modifier and Type | Method and Description |
---|---|
UpdateQuery |
addCondition(Condition newCondition)
Sets the WHERE clause for the update query.
|
UpdateQuery |
addCustomSetClause(Object column,
Object value)
Adds the given column and new value to the SET clause list.
|
UpdateQuery |
addSetClause(Column column,
Object value)
Adds the given column and new value to the SET clause list.
|
protected void |
appendTo(AppendableExt app,
SqlContext newContext)
Appends the sql query to the given AppendableExt within the given,
modifiable SqlContext.
|
protected void |
collectSchemaObjects(ValidationContext vContext)
Used during Query.validate() calls to collect the dbschema objects
referenced in a query.
|
ComboCondition |
getWhereClause()
Allows access to the AND ComboCondition of the where clause to facilitate
common condition building code.
|
addCommonTableExpression, prependTo, setRecursive
appendTo, getThisType, validate, validate, validateTables
addCustomization, customAppendTo, customAppendTo, maybeAppendTo, maybeAppendTo
collectSchemaObjects, doValidate, toString
toString, toString
public UpdateQuery(Table table)
public UpdateQuery(Object tableStr)
public UpdateQuery addSetClause(Column column, Object value)
public UpdateQuery addCustomSetClause(Object column, Object value)
column
- Object
-> SqlObject
conversions handled
by Converter.toCustomColumnSqlObject(Object)
.value
- Object
-> SqlObject
conversions handled
by Converter.toColumnSqlObject(Object)
.public ComboCondition getWhereClause()
public UpdateQuery addCondition(Condition newCondition)
protected void collectSchemaObjects(ValidationContext vContext)
SqlObject
collectSchemaObjects
in class BaseCTEQuery<UpdateQuery>
vContext
- handle to the current validation contextprotected void appendTo(AppendableExt app, SqlContext newContext) throws IOException
Query
Query.appendTo(AppendableExt)
method within the context of calls to
SqlContext.pushContext(com.healthmarketscience.common.util.AppendableExt)
and SqlContext.popContext(com.healthmarketscience.common.util.AppendableExt, com.healthmarketscience.sqlbuilder.SqlContext)
, so
the implementation is free to modify the given SqlContext.appendTo
in class Query<UpdateQuery>
app
- the target for the sql query generationnewContext
- modifiable SqlContext for nested AppendeesIOException
Copyright © 2006–2021 OpenHMS. All rights reserved.