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 query to restrict the target of the update
according to the specified boolean expression.
|
CriteriaUpdate<T> |
where(Predicate... restrictions)
Modify the 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, subqueryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, from, getRootgetRestriction, subquerypublic CriteriaUpdateImpl(CriteriaBuilderImpl criteriaBuilder)
public <Y,X extends Y> CriteriaUpdate<T> set(SingularAttribute<? super T,Y> singularAttribute, X value)
CriteriaUpdateset in interface CriteriaUpdate<T>singularAttribute - attribute to be updatedvalue - new valuepublic <Y> CriteriaUpdate<T> set(SingularAttribute<? super T,Y> singularAttribute, Expression<? extends Y> value)
CriteriaUpdateset in interface CriteriaUpdate<T>singularAttribute - attribute to be updatedvalue - new valuepublic <Y,X extends Y> CriteriaUpdate<T> set(Path<Y> attributePath, X value)
CriteriaUpdateset in interface CriteriaUpdate<T>attributePath - attribute to be updatedvalue - new valuepublic <Y> CriteriaUpdate<T> set(Path<Y> attributePath, Expression<? extends Y> value)
CriteriaUpdateset in interface CriteriaUpdate<T>attributePath - attribute to be updatedvalue - new valuepublic CriteriaUpdate<T> set(String attributeName, Object value)
CriteriaUpdateset 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)
CriteriaUpdatewhere in interface CriteriaUpdate<T>restriction - a simple or compound boolean expressionpublic CriteriaUpdate<T> where(Predicate... restrictions)
CriteriaUpdatewhere in interface CriteriaUpdate<T>restrictions - zero or more restriction predicatespublic void validate()
validate in interface CompilableCriteriavalidate in class AbstractManipulationCriteriaQuery<T>protected String renderQuery(RenderingContext renderingContext)
renderQuery in class AbstractManipulationCriteriaQuery<T>Copyright © 2017 JBoss by Red Hat. All rights reserved.