com.mysema.query.hql.hibernate
Class HibernateUpdateClause

java.lang.Object
  extended by com.mysema.query.hql.hibernate.HibernateUpdateClause
All Implemented Interfaces:
UpdateClause<HibernateUpdateClause>

public class HibernateUpdateClause
extends Object
implements UpdateClause<HibernateUpdateClause>

UpdateClause implementation for JPA

Author:
tiwe

Constructor Summary
HibernateUpdateClause(SessionHolder session, PEntity<?> entity, JPQLTemplates templates)
           
HibernateUpdateClause(org.hibernate.Session session, PEntity<?> entity)
           
HibernateUpdateClause(org.hibernate.StatelessSession session, PEntity<?> entity)
           
 
Method Summary
 long execute()
          Execute the delete clause and return the amount of updated rows/items
 HibernateUpdateClause set(List<? extends Path<?>> paths, List<?> values)
          Set the paths to be updated
<T> HibernateUpdateClause
set(Path<T> path, T value)
          Set the path to be updated
 HibernateUpdateClause where(EBoolean... o)
          Defines the filter constraints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUpdateClause

public HibernateUpdateClause(org.hibernate.Session session,
                             PEntity<?> entity)

HibernateUpdateClause

public HibernateUpdateClause(org.hibernate.StatelessSession session,
                             PEntity<?> entity)

HibernateUpdateClause

public HibernateUpdateClause(SessionHolder session,
                             PEntity<?> entity,
                             JPQLTemplates templates)
Method Detail

execute

public long execute()
Description copied from interface: UpdateClause
Execute the delete clause and return the amount of updated rows/items

Specified by:
execute in interface UpdateClause<HibernateUpdateClause>
Returns:

set

public <T> HibernateUpdateClause set(Path<T> path,
                                     T value)
Description copied from interface: UpdateClause
Set the path to be updated

Specified by:
set in interface UpdateClause<HibernateUpdateClause>
Parameters:
path - path to be updated
value - value to set
Returns:

set

public HibernateUpdateClause set(List<? extends Path<?>> paths,
                                 List<?> values)
Description copied from interface: UpdateClause
Set the paths to be updated

Specified by:
set in interface UpdateClause<HibernateUpdateClause>
Returns:

where

public HibernateUpdateClause where(EBoolean... o)
Description copied from interface: UpdateClause
Defines the filter constraints

Specified by:
where in interface UpdateClause<HibernateUpdateClause>
Returns:


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