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 AbstractDeleteStatement<E,SELF extends DeleteStatement<E,SELF>> extends AbstractModifyStatement<E,SELF> implements DeleteStatement<E,SELF>
DeleteStatement
.Constructor and Description |
---|
AbstractDeleteStatement(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. |
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
public AbstractDeleteStatement(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 DeleteStatement<E,SELF>>
expressions
- the Expression
s to add.public SELF limit(int limit)
FeatureLimit
limit
in interface FeatureLimit<SELF extends DeleteStatement<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 DeleteStatement<E,SELF>>
builder
- the SqlBuilder
with the query context to build the SQL and bind variables.Copyright © 2001–2016 mmm-Team. All rights reserved.