com.mysema.query.jpa.impl
Class JPAUpdateClause

java.lang.Object
  extended by com.mysema.query.jpa.impl.JPAUpdateClause
All Implemented Interfaces:
DMLClause<JPAUpdateClause>, StoreClause<JPAUpdateClause>, UpdateClause<JPAUpdateClause>, FilteredClause<JPAUpdateClause>

public class JPAUpdateClause
extends Object
implements UpdateClause<JPAUpdateClause>

UpdateClause implementation for JPA

Author:
tiwe

Constructor Summary
JPAUpdateClause(javax.persistence.EntityManager em, EntityPath<?> entity)
           
JPAUpdateClause(javax.persistence.EntityManager em, EntityPath<?> entity, JPQLTemplates templates)
           
 
Method Summary
 long execute()
           
 JPAUpdateClause set(List<? extends Path<?>> paths, List<?> values)
           
<T> JPAUpdateClause
set(Path<T> path, Expression<? extends T> expression)
           
<T> JPAUpdateClause
set(Path<T> path, T value)
           
<T> JPAUpdateClause
setNull(Path<T> path)
           
 String toString()
           
 JPAUpdateClause where(Predicate... o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPAUpdateClause

public JPAUpdateClause(javax.persistence.EntityManager em,
                       EntityPath<?> entity)

JPAUpdateClause

public JPAUpdateClause(javax.persistence.EntityManager em,
                       EntityPath<?> entity,
                       JPQLTemplates templates)
Method Detail

execute

public long execute()
Specified by:
execute in interface DMLClause<JPAUpdateClause>

set

public <T> JPAUpdateClause set(Path<T> path,
                               T value)
Specified by:
set in interface StoreClause<JPAUpdateClause>

set

public <T> JPAUpdateClause set(Path<T> path,
                               Expression<? extends T> expression)
Specified by:
set in interface StoreClause<JPAUpdateClause>

setNull

public <T> JPAUpdateClause setNull(Path<T> path)
Specified by:
setNull in interface StoreClause<JPAUpdateClause>

set

public JPAUpdateClause set(List<? extends Path<?>> paths,
                           List<?> values)
Specified by:
set in interface UpdateClause<JPAUpdateClause>

where

public JPAUpdateClause where(Predicate... o)
Specified by:
where in interface FilteredClause<JPAUpdateClause>

toString

public String toString()
Overrides:
toString in class Object


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