public class HibernateDeleteClause extends Object implements DeleteClause<HibernateDeleteClause>
Constructor and Description |
---|
HibernateDeleteClause(org.hibernate.Session session,
EntityPath<?> entity) |
HibernateDeleteClause(org.hibernate.Session session,
EntityPath<?> entity,
JPQLTemplates templates) |
HibernateDeleteClause(SessionHolder session,
EntityPath<?> entity,
JPQLTemplates templates) |
HibernateDeleteClause(org.hibernate.StatelessSession session,
EntityPath<?> entity) |
Modifier and Type | Method and Description |
---|---|
long |
execute()
Execute the clause and return the amount of affected rows
|
HibernateDeleteClause |
setLockMode(Path<?> path,
org.hibernate.LockMode lockMode)
Set the lock mode for the given path.
|
String |
toString() |
HibernateDeleteClause |
where(Predicate... o)
Adds the given filter conditions
|
public HibernateDeleteClause(org.hibernate.Session session, EntityPath<?> entity)
public HibernateDeleteClause(org.hibernate.StatelessSession session, EntityPath<?> entity)
public HibernateDeleteClause(org.hibernate.Session session, EntityPath<?> entity, JPQLTemplates templates)
public HibernateDeleteClause(SessionHolder session, EntityPath<?> entity, JPQLTemplates templates)
public long execute()
DMLClause
execute
in interface DMLClause<HibernateDeleteClause>
public HibernateDeleteClause where(Predicate... o)
FilteredClause
Skips null arguments
where
in interface FilteredClause<HibernateDeleteClause>
o
- filter conditions to be addedpublic HibernateDeleteClause setLockMode(Path<?> path, org.hibernate.LockMode lockMode)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.