E
- the generic type of the queried object (typically a Bean
).SELF
- the generic type of this query itself (this) for fluent API calls.public abstract class AbstractUpdateStatement<E,SELF extends UpdateStatement<E,SELF>> extends AbstractStoreStatement<E,SELF> implements UpdateStatement<E,SELF>
UpdateStatement
.Constructor and Description |
---|
AbstractUpdateStatement(SqlDialect dialect,
EntityAlias<E> alias)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildStart(SqlBuilder builder) |
SELF |
limit(int limit)
Set the limit for the query matches.
|
SELF |
where(Expression... expressions)
Adds the given
Expression s as filter criteria to the WHERE-clause. |
set, set
doExecute, execute
addAlias, addAliases, build, createFeature, createSqlBuilder, feature, getAlias, getBuilder, getDialect, getFeature, getParameters, getResultClass, getSql, isSupportingAlias, self, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAlias, getDialect, getParameters, getSql, toString
execute
set, set, setNull
public AbstractUpdateStatement(SqlDialect dialect, EntityAlias<E> alias)
dialect
- - see AbstractStatement.getDialect()
.alias
- - see AbstractStatement.getAlias()
.public SELF where(Expression... expressions)
FeatureWhere
Expression
s as filter criteria to the WHERE-clause. Multiple invocations will combine
Expression
s with logical AND
but it is preferred to use a
single invocation.where
in interface FeatureWhere<SELF extends UpdateStatement<E,SELF>>
expressions
- the Expression
s to add.public SELF limit(int limit)
FeatureLimit
limit
in interface FeatureLimit<SELF extends UpdateStatement<E,SELF>>
limit
- the limit for the maximum number of matches for the query.protected void buildStart(SqlBuilder builder)
buildStart
in class AbstractStatement<E,SELF extends UpdateStatement<E,SELF>>
builder
- the SqlBuilder
with the query context to build the SQL and bind variables.Copyright © 2001–2016 mmm-Team. All rights reserved.