Package com.querydsl.jpa.hibernate
Class HibernateDeleteClause
- java.lang.Object
-
- com.querydsl.jpa.hibernate.HibernateDeleteClause
-
- All Implemented Interfaces:
DeleteClause<HibernateDeleteClause>,DMLClause<HibernateDeleteClause>,FilteredClause<HibernateDeleteClause>
public class HibernateDeleteClause extends java.lang.Object implements DeleteClause<HibernateDeleteClause>
DeleteClause implementation for Hibernate- Author:
- tiwe
-
-
Constructor Summary
Constructors Constructor Description HibernateDeleteClause(SessionHolder session, EntityPath<?> entity, JPQLTemplates templates)HibernateDeleteClause(org.hibernate.Session session, EntityPath<?> entity)HibernateDeleteClause(org.hibernate.Session session, EntityPath<?> entity, JPQLTemplates templates)HibernateDeleteClause(org.hibernate.StatelessSession session, EntityPath<?> entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longexecute()HibernateDeleteClausesetLockMode(Path<?> path, org.hibernate.LockMode lockMode)Set the lock mode for the given path.java.lang.StringtoString()HibernateDeleteClausewhere(Predicate... o)
-
-
-
Constructor Detail
-
HibernateDeleteClause
public HibernateDeleteClause(org.hibernate.Session session, EntityPath<?> entity)
-
HibernateDeleteClause
public HibernateDeleteClause(org.hibernate.StatelessSession session, EntityPath<?> entity)
-
HibernateDeleteClause
public HibernateDeleteClause(org.hibernate.Session session, EntityPath<?> entity, JPQLTemplates templates)
-
HibernateDeleteClause
public HibernateDeleteClause(SessionHolder session, EntityPath<?> entity, JPQLTemplates templates)
-
-
Method Detail
-
execute
public long execute()
- Specified by:
executein interfaceDMLClause<HibernateDeleteClause>
-
where
public HibernateDeleteClause where(Predicate... o)
- Specified by:
wherein interfaceFilteredClause<HibernateDeleteClause>
-
setLockMode
public HibernateDeleteClause setLockMode(Path<?> path, org.hibernate.LockMode lockMode)
Set the lock mode for the given path.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-