public class HibernateUpdateClause extends Object implements UpdateClause<HibernateUpdateClause>
| Constructor and Description | 
|---|
| HibernateUpdateClause(org.hibernate.Session session,
                     EntityPath<?> entity) | 
| HibernateUpdateClause(org.hibernate.Session session,
                     EntityPath<?> entity,
                     JPQLTemplates templates) | 
| HibernateUpdateClause(SessionHolder session,
                     EntityPath<?> entity,
                     JPQLTemplates templates) | 
| HibernateUpdateClause(org.hibernate.StatelessSession session,
                     EntityPath<?> entity) | 
| Modifier and Type | Method and Description | 
|---|---|
| long | execute()Execute the clause and return the amount of affected rows | 
| boolean | isEmpty()Returns true, if no bindings have been set, otherwise false. | 
| HibernateUpdateClause | set(List<? extends Path<?>> paths,
   List<?> values)Set the paths to be updated | 
| <T> HibernateUpdateClause | set(Path<T> path,
   Expression<? extends T> expression)Add an expression binding | 
| <T> HibernateUpdateClause | set(Path<T> path,
   T value)Add a value binding | 
| HibernateUpdateClause | setLockMode(Path<?> path,
           org.hibernate.LockMode lockMode)Set the lock mode for the given path. | 
| <T> HibernateUpdateClause | setNull(Path<T> path)Bind the given path to null | 
| String | toString() | 
| HibernateUpdateClause | where(Predicate... o)Adds the given filter conditions | 
public HibernateUpdateClause(org.hibernate.Session session,
                             EntityPath<?> entity)
public HibernateUpdateClause(org.hibernate.StatelessSession session,
                             EntityPath<?> entity)
public HibernateUpdateClause(org.hibernate.Session session,
                             EntityPath<?> entity,
                             JPQLTemplates templates)
public HibernateUpdateClause(SessionHolder session, EntityPath<?> entity, JPQLTemplates templates)
public long execute()
DMLClauseexecute in interface DMLClause<HibernateUpdateClause>public <T> HibernateUpdateClause set(Path<T> path, T value)
StoreClauseset in interface StoreClause<HibernateUpdateClause>path - path to be updatedvalue - value to setpublic <T> HibernateUpdateClause set(Path<T> path, Expression<? extends T> expression)
StoreClauseset in interface StoreClause<HibernateUpdateClause>public <T> HibernateUpdateClause setNull(Path<T> path)
StoreClausesetNull in interface StoreClause<HibernateUpdateClause>public HibernateUpdateClause set(List<? extends Path<?>> paths, List<?> values)
UpdateClauseset in interface UpdateClause<HibernateUpdateClause>public HibernateUpdateClause where(Predicate... o)
FilteredClauseSkips null arguments
where in interface FilteredClause<HibernateUpdateClause>o - filter conditions to be addedpublic HibernateUpdateClause setLockMode(Path<?> path, org.hibernate.LockMode lockMode)
public boolean isEmpty()
StoreClauseisEmpty in interface StoreClause<HibernateUpdateClause>Copyright © 2007–2015 Querydsl. All rights reserved.