com.mysema.query.sql.dml
Class SQLDeleteClause

java.lang.Object
  extended by com.mysema.query.sql.dml.AbstractSQLClause
      extended by 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

Field Summary
 
Fields inherited from class com.mysema.query.sql.dml.AbstractSQLClause
configuration
 
Constructor Summary
SQLDeleteClause(Connection connection, Configuration configuration, RelationalPath<?> entity)
           
SQLDeleteClause(Connection connection, SQLTemplates templates, RelationalPath<?> entity)
           
 
Method Summary
 SQLDeleteClause addBatch()
          Add current state of bindings as a batch item
 SQLDeleteClause addFlag(QueryFlag.Position position, String flag)
          Add the given String literal at the given position as a query flag
protected  void close(PreparedStatement stmt)
           
 long execute()
          Execute the clause and return the amount of affected rows
 String toString()
           
 SQLDeleteClause where(Predicate... o)
          Adds the given filter conditions
 
Methods inherited from class com.mysema.query.sql.dml.AbstractSQLClause
setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLDeleteClause

public SQLDeleteClause(Connection connection,
                       SQLTemplates templates,
                       RelationalPath<?> entity)

SQLDeleteClause

public SQLDeleteClause(Connection connection,
                       Configuration configuration,
                       RelationalPath<?> entity)
Method Detail

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>
Parameters:
o - filter conditions to be added
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.