public class SQLDeleteClause extends AbstractSQLClause<SQLDeleteClause> implements DeleteClause<SQLDeleteClause>
configuration
Constructor and Description |
---|
SQLDeleteClause(java.sql.Connection connection,
Configuration configuration,
RelationalPath<?> entity) |
SQLDeleteClause(java.sql.Connection connection,
SQLTemplates templates,
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,
java.lang.String flag)
Add the given String literal at the given position as a query flag
|
long |
execute()
Execute the clause and return the amount of affected rows
|
java.lang.String |
toString() |
SQLDeleteClause |
where(Predicate... o)
Adds the given filter conditions
|
SQLDeleteClause |
where(Predicate p) |
close, close, executeBatch, setParameters
public SQLDeleteClause(java.sql.Connection connection, SQLTemplates templates, RelationalPath<?> entity)
public SQLDeleteClause(java.sql.Connection connection, Configuration configuration, RelationalPath<?> entity)
public SQLDeleteClause addFlag(QueryFlag.Position position, java.lang.String flag)
position
- flag
- public SQLDeleteClause addFlag(QueryFlag.Position position, Expression<?> flag)
position
- flag
- public SQLDeleteClause addBatch()
public long execute()
DMLClause
execute
in interface DMLClause<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 java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.