public class JPADeleteClause extends java.lang.Object implements DeleteClause<JPADeleteClause>
Constructor and Description |
---|
JPADeleteClause(javax.persistence.EntityManager em,
EntityPath<?> entity) |
JPADeleteClause(javax.persistence.EntityManager entityManager,
EntityPath<?> entity,
JPQLTemplates templates) |
Modifier and Type | Method and Description |
---|---|
long |
execute()
Execute the clause and return the amount of affected rows
|
java.lang.String |
toString() |
JPADeleteClause |
where(Predicate... o)
Adds the given filter conditions
|
public JPADeleteClause(javax.persistence.EntityManager em, EntityPath<?> entity)
public JPADeleteClause(javax.persistence.EntityManager entityManager, EntityPath<?> entity, JPQLTemplates templates)
public long execute()
DMLClause
execute
in interface DMLClause<JPADeleteClause>
public JPADeleteClause where(Predicate... o)
FilteredClause
Skips null arguments
where
in interface FilteredClause<JPADeleteClause>
o
- filter conditions to be addedpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.