public class SQLDeleteClause extends AbstractSQLClause<SQLDeleteClause> implements DeleteClause<SQLDeleteClause>
SQLDeleteClause
defines a DELETE clauseconfiguration, context, listeners, useLiterals
Constructor and Description |
---|
SQLDeleteClause(Connection connection,
Configuration configuration,
RelationalPath<?> entity) |
SQLDeleteClause(Connection connection,
SQLTemplates templates,
RelationalPath<?> entity) |
SQLDeleteClause(javax.inject.Provider<Connection> connection,
Configuration configuration,
RelationalPath<?> entity) |
Modifier and Type | Method and Description |
---|---|
SQLDeleteClause |
addBatch()
Add current state of bindings as a batch item
|
SQLDeleteClause |
addFlag(QueryFlag.Position position,
Expression<?> flag)
Add the given Expression at the given position as a query flag
|
SQLDeleteClause |
addFlag(QueryFlag.Position position,
String flag)
Add the given String literal at the given position as a query flag
|
void |
clear()
Clear the internal state of the clause
|
long |
execute()
Execute the clause and return the amount of affected rows
|
int |
getBatchCount() |
List<SQLBindings> |
getSQL()
Get the SQL string and bindings
|
SQLDeleteClause |
limit(long limit) |
String |
toString() |
SQLDeleteClause |
where(Predicate... o)
Adds the given filter conditions
|
SQLDeleteClause |
where(Predicate p) |
addListener, cleanupMDC, close, close, close, connection, createBindings, createSerializer, endContext, executeBatch, logQuery, onException, reset, setParameters, setUseLiterals, startContext
public SQLDeleteClause(Connection connection, SQLTemplates templates, RelationalPath<?> entity)
public SQLDeleteClause(Connection connection, Configuration configuration, RelationalPath<?> entity)
public SQLDeleteClause(javax.inject.Provider<Connection> connection, Configuration configuration, RelationalPath<?> entity)
public SQLDeleteClause addFlag(QueryFlag.Position position, String flag)
position
- positionflag
- query flagpublic SQLDeleteClause addFlag(QueryFlag.Position position, Expression<?> flag)
position
- positionflag
- query flagpublic SQLDeleteClause addBatch()
public void clear()
AbstractSQLClause
clear
in class AbstractSQLClause<SQLDeleteClause>
public long execute()
DMLClause
execute
in interface DMLClause<SQLDeleteClause>
public List<SQLBindings> getSQL()
AbstractSQLClause
getSQL
in class AbstractSQLClause<SQLDeleteClause>
public SQLDeleteClause where(Predicate p)
public SQLDeleteClause where(Predicate... o)
FilteredClause
Skips null arguments
where
in interface FilteredClause<SQLDeleteClause>
o
- filter conditions to be addedpublic SQLDeleteClause limit(@Nonnegative long limit)
public int getBatchCount()
getBatchCount
in class AbstractSQLClause<SQLDeleteClause>
Copyright © 2007–2016 Querydsl. All rights reserved.