T - the entity type that is the target of the updatepublic class CriteriaUpdateImpl<T> extends CriteriaModify<T>
| Constructor and Description |
|---|
CriteriaUpdateImpl(MetamodelImpl metamodel) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateJpql()
Generates the JPQL for the query.
|
String |
generateSql()
Returns the generated SQL.
|
boolean |
isQuery()
Returns if the query is a select query.
|
<Y> CriteriaUpdateImpl<T> |
set(javax.persistence.criteria.Path<Y> attribute,
javax.persistence.criteria.Expression<? extends Y> value)
Adds the set item.
|
CriteriaUpdateImpl<T> |
where(javax.persistence.criteria.Expression<Boolean> restriction)
Modify the query to restrict the target of the deletion according to the specified boolean expression.
|
CriteriaUpdateImpl<T> |
where(javax.persistence.criteria.Predicate... restrictions)
Modify the query to restrict the target of the deletion according to the conjunction of the specified restriction predicates.
|
from, from, getJpql, getRestriction, getRoot, isInternal, subquerygenerateTableAlias, getAlias, getAlias, getFieldAlias, getJdbcAdaptor, getMetamodel, getParameter, getParameters, getSql, getSqlParameters, setNextSqlParampublic CriteriaUpdateImpl(MetamodelImpl metamodel)
metamodel - the metamodelpublic String generateJpql()
public String generateSql()
public boolean isQuery()
isQuery in class BaseQueryImpl<T>public <Y> CriteriaUpdateImpl<T> set(javax.persistence.criteria.Path<Y> attribute, javax.persistence.criteria.Expression<? extends Y> value)
Y - the typ of the attributeattribute - the attributevalue - the valuepublic CriteriaUpdateImpl<T> where(javax.persistence.criteria.Expression<Boolean> restriction)
where in class CriteriaModify<T>restriction - a simple or compound boolean expressionpublic CriteriaUpdateImpl<T> where(javax.persistence.criteria.Predicate... restrictions)
where in class CriteriaModify<T>restrictions - zero or more restriction predicatesCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.