com.mysema.query.jdo.dml
Class JDOQLDeleteClause

java.lang.Object
  extended by com.mysema.query.jdo.dml.JDOQLDeleteClause
All Implemented Interfaces:
DeleteClause<JDOQLDeleteClause>, DMLClause<JDOQLDeleteClause>, FilteredClause<JDOQLDeleteClause>

public class JDOQLDeleteClause
extends Object
implements DeleteClause<JDOQLDeleteClause>

DeleteClause implementation for JDO

Author:
tiwe

Constructor Summary
JDOQLDeleteClause(javax.jdo.PersistenceManager pm, EntityPath<?> entity)
           
JDOQLDeleteClause(javax.jdo.PersistenceManager persistenceManager, EntityPath<?> entity, JDOQLTemplates templates)
           
 
Method Summary
 long execute()
          Execute the clause and return the amount of affected rows
 String toString()
           
 JDOQLDeleteClause where(Predicate... o)
          Adds the given filter conditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDOQLDeleteClause

public JDOQLDeleteClause(javax.jdo.PersistenceManager pm,
                         EntityPath<?> entity)

JDOQLDeleteClause

public JDOQLDeleteClause(javax.jdo.PersistenceManager persistenceManager,
                         EntityPath<?> entity,
                         JDOQLTemplates templates)
Method Detail

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<JDOQLDeleteClause>
Returns:

where

public JDOQLDeleteClause where(Predicate... o)
Description copied from interface: FilteredClause
Adds the given filter conditions

Specified by:
where in interface FilteredClause<JDOQLDeleteClause>
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.