com.mysema.query.jpa.hibernate
Class HibernateDeleteClause

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

public class HibernateDeleteClause
extends Object
implements DeleteClause<HibernateDeleteClause>

DeleteClause implementation for Hibernate

Author:
tiwe

Constructor Summary
HibernateDeleteClause(org.hibernate.Session session, EntityPath<?> entity)
           
HibernateDeleteClause(SessionHolder session, EntityPath<?> entity, JPQLTemplates templates)
           
HibernateDeleteClause(org.hibernate.StatelessSession session, EntityPath<?> entity)
           
 
Method Summary
 long execute()
          Execute the clause and return the amount of affected rows
 String toString()
           
 HibernateDeleteClause 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

HibernateDeleteClause

public HibernateDeleteClause(org.hibernate.Session session,
                             EntityPath<?> entity)

HibernateDeleteClause

public HibernateDeleteClause(org.hibernate.StatelessSession session,
                             EntityPath<?> entity)

HibernateDeleteClause

public HibernateDeleteClause(SessionHolder session,
                             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<HibernateDeleteClause>
Returns:

where

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

Specified by:
where in interface FilteredClause<HibernateDeleteClause>
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.