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, PEntity<?> entity)
           
SQLDeleteClause(Connection connection, SQLTemplates templates, PEntity<?> entity)
           
 
Method Summary
protected  void close(PreparedStatement stmt)
           
 long execute()
          Execute the clause and return the amount of affected rows
 String toString()
           
 SQLDeleteClause where(EBoolean... o)
          Defines the filter constraints
 
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,
                       PEntity<?> entity)

SQLDeleteClause

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

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(EBoolean... o)
Description copied from interface: FilteredClause
Defines the filter constraints

Specified by:
where in interface FilteredClause<SQLDeleteClause>
Returns:

toString

public String toString()
Overrides:
toString in class Object


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