com.mysema.query.jpa.impl
Class JPADeleteClause

java.lang.Object
  extended by com.mysema.query.jpa.impl.JPADeleteClause
All Implemented Interfaces:
DeleteClause<JPADeleteClause>, DMLClause<JPADeleteClause>, FilteredClause<JPADeleteClause>

public class JPADeleteClause
extends Object
implements DeleteClause<JPADeleteClause>

DeleteClause implementation for JPA

Author:
tiwe

Constructor Summary
JPADeleteClause(javax.persistence.EntityManager em, EntityPath<?> entity)
           
JPADeleteClause(javax.persistence.EntityManager entityManager, EntityPath<?> entity, JPQLTemplates templates)
           
 
Method Summary
 long execute()
          Execute the clause and return the amount of affected rows
 String toString()
           
 JPADeleteClause 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

JPADeleteClause

public JPADeleteClause(javax.persistence.EntityManager em,
                       EntityPath<?> entity)

JPADeleteClause

public JPADeleteClause(javax.persistence.EntityManager entityManager,
                       EntityPath<?> entity,
                       JPQLTemplates 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<JPADeleteClause>
Returns:

where

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

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