Package com.querydsl.jpa.impl
Class JPAUpdateClause
- java.lang.Object
-
- com.querydsl.jpa.impl.JPAUpdateClause
-
- All Implemented Interfaces:
DMLClause<JPAUpdateClause>,StoreClause<JPAUpdateClause>,UpdateClause<JPAUpdateClause>,FilteredClause<JPAUpdateClause>
public class JPAUpdateClause extends java.lang.Object implements UpdateClause<JPAUpdateClause>
UpdateClause implementation for JPA- Author:
- tiwe
-
-
Constructor Summary
Constructors Constructor Description JPAUpdateClause(jakarta.persistence.EntityManager em, EntityPath<?> entity)JPAUpdateClause(jakarta.persistence.EntityManager em, EntityPath<?> entity, JPQLTemplates templates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longexecute()booleanisEmpty()<T> JPAUpdateClauseset(Path<T> path, Expression<? extends T> expression)<T> JPAUpdateClauseset(Path<T> path, T value)JPAUpdateClauseset(java.util.List<? extends Path<?>> paths, java.util.List<?> values)JPAUpdateClausesetLockMode(jakarta.persistence.LockModeType lockMode)<T> JPAUpdateClausesetNull(Path<T> path)java.lang.StringtoString()JPAUpdateClausewhere(Predicate... o)
-
-
-
Constructor Detail
-
JPAUpdateClause
public JPAUpdateClause(jakarta.persistence.EntityManager em, EntityPath<?> entity)
-
JPAUpdateClause
public JPAUpdateClause(jakarta.persistence.EntityManager em, EntityPath<?> entity, JPQLTemplates templates)
-
-
Method Detail
-
execute
public long execute()
- Specified by:
executein interfaceDMLClause<JPAUpdateClause>
-
set
public <T> JPAUpdateClause set(Path<T> path, T value)
- Specified by:
setin interfaceStoreClause<JPAUpdateClause>
-
set
public <T> JPAUpdateClause set(Path<T> path, Expression<? extends T> expression)
- Specified by:
setin interfaceStoreClause<JPAUpdateClause>
-
setNull
public <T> JPAUpdateClause setNull(Path<T> path)
- Specified by:
setNullin interfaceStoreClause<JPAUpdateClause>
-
set
public JPAUpdateClause set(java.util.List<? extends Path<?>> paths, java.util.List<?> values)
- Specified by:
setin interfaceUpdateClause<JPAUpdateClause>
-
where
public JPAUpdateClause where(Predicate... o)
- Specified by:
wherein interfaceFilteredClause<JPAUpdateClause>
-
setLockMode
public JPAUpdateClause setLockMode(jakarta.persistence.LockModeType lockMode)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceStoreClause<JPAUpdateClause>
-
-