Package com.querydsl.jpa.hibernate
Class HibernateUpdateClause
java.lang.Object
com.querydsl.jpa.hibernate.HibernateUpdateClause
- All Implemented Interfaces:
DMLClause<HibernateUpdateClause>,StoreClause<HibernateUpdateClause>,UpdateClause<HibernateUpdateClause>,FilteredClause<HibernateUpdateClause>
UpdateClause implementation for Hibernate
- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionHibernateUpdateClause(SessionHolder session, EntityPath<?> entity, JPQLTemplates templates) HibernateUpdateClause(org.hibernate.Session session, EntityPath<?> entity) HibernateUpdateClause(org.hibernate.Session session, EntityPath<?> entity, JPQLTemplates templates) HibernateUpdateClause(org.hibernate.StatelessSession session, EntityPath<?> entity) -
Method Summary
Modifier and TypeMethodDescriptionlongexecute()booleanisEmpty()set(Path<T> path, Expression<? extends T> expression) setLockMode(Path<?> path, org.hibernate.LockMode lockMode) Set the lock mode for the given path.toString()
-
Constructor Details
-
HibernateUpdateClause
-
HibernateUpdateClause
-
HibernateUpdateClause
public HibernateUpdateClause(org.hibernate.Session session, EntityPath<?> entity, JPQLTemplates templates) -
HibernateUpdateClause
-
-
Method Details
-
execute
public long execute()- Specified by:
executein interfaceDMLClause<HibernateUpdateClause>
-
set
- Specified by:
setin interfaceStoreClause<HibernateUpdateClause>
-
set
- Specified by:
setin interfaceStoreClause<HibernateUpdateClause>
-
setNull
- Specified by:
setNullin interfaceStoreClause<HibernateUpdateClause>
-
set
- Specified by:
setin interfaceUpdateClause<HibernateUpdateClause>
-
where
- Specified by:
wherein interfaceFilteredClause<HibernateUpdateClause>
-
setLockMode
Set the lock mode for the given path.- Returns:
- the current object
-
toString
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceStoreClause<HibernateUpdateClause>
-