com.mysema.query.sql.dml
Class SQLDeleteClause
java.lang.Object
com.mysema.query.sql.dml.AbstractSQLClause
com.mysema.query.sql.dml.SQLDeleteClause
- All Implemented Interfaces:
- DeleteClause<SQLDeleteClause>, DMLClause<SQLDeleteClause>, FilteredClause<SQLDeleteClause>
public class SQLDeleteClause
- extends AbstractSQLClause
- implements DeleteClause<SQLDeleteClause>
SQLDeleteClause defines a DELETE clause
- Author:
- tiwe
SQLDeleteClause
public SQLDeleteClause(Connection connection,
SQLTemplates templates,
RelationalPath<?> entity)
SQLDeleteClause
public SQLDeleteClause(Connection connection,
Configuration configuration,
RelationalPath<?> entity)
addFlag
public SQLDeleteClause addFlag(QueryFlag.Position position,
String flag)
- Add the given String literal at the given position as a query flag
- Parameters:
position
- flag
-
- Returns:
addBatch
public SQLDeleteClause addBatch()
- Add current state of bindings as a batch item
- Returns:
close
protected void close(PreparedStatement stmt)
execute
public long execute()
- Description copied from interface:
DMLClause
- Execute the clause and return the amount of affected rows
- Specified by:
execute
in interface DMLClause<SQLDeleteClause>
- Returns:
where
public SQLDeleteClause where(Predicate... o)
- Description copied from interface:
FilteredClause
- Adds the given filter conditions
- Specified by:
where
in interface FilteredClause<SQLDeleteClause>
- Returns:
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.