public class CriteriaUpdateImpl<T> extends AbstractManipulationCriteriaQuery<T> implements CriteriaUpdate<T>
CriteriaUpdate
contract.Constructor and Description |
---|
CriteriaUpdateImpl(CriteriaBuilderImpl criteriaBuilder) |
Modifier and Type | Method and Description |
---|---|
protected <Y> void |
addAssignment(Path<Y> attributePath,
Expression<? extends Y> value) |
protected String |
renderQuery(RenderingContext renderingContext) |
<Y> CriteriaUpdate<T> |
set(Path<Y> attributePath,
Expression<? extends Y> value)
Update the value of the specified attribute.
|
<Y,X extends Y> |
set(Path<Y> attributePath,
X value)
Update the value of the specified attribute.
|
<Y> CriteriaUpdate<T> |
set(SingularAttribute<? super T,Y> singularAttribute,
Expression<? extends Y> value)
Update the value of the specified attribute.
|
<Y,X extends Y> |
set(SingularAttribute<? super T,Y> singularAttribute,
X value)
Update the value of the specified attribute.
|
CriteriaUpdate<T> |
set(String attributeName,
Object value)
Update the value of the specified attribute.
|
void |
validate() |
CriteriaUpdate<T> |
where(Expression<Boolean> restriction)
Modify the update query to restrict the target of the update
according to the specified boolean expression.
|
CriteriaUpdate<T> |
where(Predicate... restrictions)
Modify the update query to restrict the target of the update
according to the conjunction of the specified restriction
predicates.
|
criteriaBuilder, from, from, getRestriction, getRoot, interpret, renderRestrictions, renderRoot, setRestriction, setRestriction, subquery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
from, from, getRoot
getRestriction, subquery
public CriteriaUpdateImpl(CriteriaBuilderImpl criteriaBuilder)
public <Y,X extends Y> CriteriaUpdate<T> set(SingularAttribute<? super T,Y> singularAttribute, X value)
CriteriaUpdate
set
in interface CriteriaUpdate<T>
singularAttribute
- attribute to be updatedvalue
- new valuepublic <Y> CriteriaUpdate<T> set(SingularAttribute<? super T,Y> singularAttribute, Expression<? extends Y> value)
CriteriaUpdate
set
in interface CriteriaUpdate<T>
singularAttribute
- attribute to be updatedvalue
- new valuepublic <Y,X extends Y> CriteriaUpdate<T> set(Path<Y> attributePath, X value)
CriteriaUpdate
set
in interface CriteriaUpdate<T>
attributePath
- attribute to be updatedvalue
- new valuepublic <Y> CriteriaUpdate<T> set(Path<Y> attributePath, Expression<? extends Y> value)
CriteriaUpdate
set
in interface CriteriaUpdate<T>
attributePath
- attribute to be updatedvalue
- new valuepublic CriteriaUpdate<T> set(String attributeName, Object value)
CriteriaUpdate
set
in interface CriteriaUpdate<T>
attributeName
- name of the attribute to be updatedvalue
- new valueprotected <Y> void addAssignment(Path<Y> attributePath, Expression<? extends Y> value)
public CriteriaUpdate<T> where(Expression<Boolean> restriction)
CriteriaUpdate
where
in interface CriteriaUpdate<T>
restriction
- a simple or compound boolean expressionpublic CriteriaUpdate<T> where(Predicate... restrictions)
CriteriaUpdate
where
in interface CriteriaUpdate<T>
restrictions
- zero or more restriction predicatespublic void validate()
validate
in interface CompilableCriteria
validate
in class AbstractManipulationCriteriaQuery<T>
protected String renderQuery(RenderingContext renderingContext)
renderQuery
in class AbstractManipulationCriteriaQuery<T>
Copyright © 2019 JBoss by Red Hat. All rights reserved.