com.mysema.query.hql.jpa
Class JPAUpdateClause

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

public class JPAUpdateClause
extends Object
implements UpdateClause<JPAUpdateClause>

UpdateClause implementation for JPA

Author:
tiwe

Constructor Summary
JPAUpdateClause(javax.persistence.EntityManager session, PEntity<?> entity)
           
JPAUpdateClause(javax.persistence.EntityManager em, PEntity<?> entity, JPQLTemplates templates)
           
 
Method Summary
 long execute()
          Execute the delete clause and return the amount of updated rows/items
 JPAUpdateClause set(List<? extends Path<?>> paths, List<?> values)
          Set the paths to be updated
<T> JPAUpdateClause
set(Path<T> path, T value)
          Set the path to be updated
 JPAUpdateClause 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

JPAUpdateClause

public JPAUpdateClause(javax.persistence.EntityManager session,
                       PEntity<?> entity)

JPAUpdateClause

public JPAUpdateClause(javax.persistence.EntityManager em,
                       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<JPAUpdateClause>
Returns:

set

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

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

set

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

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

where

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

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


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