Interface BlazeCriteriaUpdate<T>
- Type Parameters:
T
- the entity type that is the target of the update
- All Superinterfaces:
BlazeCommonAbstractCriteria
,CommonAbstractCriteria
,CriteriaUpdate<T>
An extended version of
CriteriaUpdate
.- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptioncreateCriteriaBuilder
(EntityManager entityManager) Create a Blaze-Persistence CoreUpdateCriteriaBuilder
from this query.LikeCriteriaUpdate.from(Class)
but allows to set the alias of theBlazeRoot
.LikeCriteriaUpdate.from(EntityType)
but allows to set the alias of theBlazeRoot
.getRoot()
<Y> BlazeCriteriaUpdate<T>
set
(Path<Y> attribute, Expression<? extends Y> value) <Y,
X extends Y>
BlazeCriteriaUpdate<T><Y> BlazeCriteriaUpdate<T>
set
(javax.persistence.metamodel.SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) <Y,
X extends Y>
BlazeCriteriaUpdate<T>where
(Expression<Boolean> restriction) Methods inherited from interface com.blazebit.persistence.criteria.BlazeCommonAbstractCriteria
subquery
Methods inherited from interface javax.persistence.criteria.CommonAbstractCriteria
getRestriction
-
Method Details
-
createCriteriaBuilder
Create a Blaze-Persistence CoreUpdateCriteriaBuilder
from this query.- Parameters:
entityManager
- The entity manager to which to bind the criteria builder- Returns:
- A new criteria builder
- Since:
- 1.3.0
-
from
LikeCriteriaUpdate.from(Class)
but allows to set the alias of theBlazeRoot
.- Parameters:
entityClass
- the entity classalias
- The alias for theBlazeRoot
- Returns:
- query root corresponding to the given entity
-
from
LikeCriteriaUpdate.from(EntityType)
but allows to set the alias of theBlazeRoot
.- Parameters:
entityType
- the entity typealias
- The alias for theBlazeRoot
- Returns:
- query root corresponding to the given entity
-
from
- Specified by:
from
in interfaceCriteriaUpdate<T>
-
from
- Specified by:
from
in interfaceCriteriaUpdate<T>
-
getRoot
- Specified by:
getRoot
in interfaceCriteriaUpdate<T>
-
set
<Y,X extends Y> BlazeCriteriaUpdate<T> set(javax.persistence.metamodel.SingularAttribute<? super T, Y> attribute, X value) - Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
<Y> BlazeCriteriaUpdate<T> set(javax.persistence.metamodel.SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value) - Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
- Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
- Specified by:
set
in interfaceCriteriaUpdate<T>
-
set
- Specified by:
set
in interfaceCriteriaUpdate<T>
-
where
- Specified by:
where
in interfaceCriteriaUpdate<T>
-
where
- Specified by:
where
in interfaceCriteriaUpdate<T>
-