T - the type of the modify criteria.public abstract class CriteriaModify<T> extends BaseQueryImpl<T>
| Constructor and Description |
|---|
CriteriaModify(MetamodelImpl metamodel) |
| Modifier and Type | Method and Description |
|---|---|
Root<T> |
from(Class<T> entityClass)
Create and add a query root corresponding to the entity that is the target of the delete.
|
Root<T> |
from(EntityType<T> entity)
Create and add a query root corresponding to the entity that is the target of the delete.
|
String |
getJpql()
Returns the JPQL for the query.
|
PredicateImpl |
getRestriction()
Return the predicate that corresponds to the where clause restriction(s), or null if no restrictions have been specified.
|
RootImpl<T> |
getRoot()
Return the query root.
|
<U> SubqueryImpl<U> |
subquery(Class<U> type)
Create a subquery of the query.
|
CriteriaModify<T> |
where(Expression<Boolean> restriction)
Modify the query to restrict the target of the deletion according to the specified boolean expression.
|
CriteriaModify<T> |
where(Predicate... restrictions)
Modify the query to restrict the target of the deletion according to the conjunction of the specified restriction predicates.
|
generateTableAlias, getAlias, getAlias, getFieldAlias, getJdbcAdaptor, getMetamodel, getParameter, getParameters, getSql, getSqlParameters, isQuery, setNextSqlParamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgenerateJpql, generateSqlpublic CriteriaModify(MetamodelImpl metamodel)
metamodel - the metamodelpublic Root<T> from(Class<T> entityClass)
entityClass - the entity classpublic Root<T> from(EntityType<T> entity)
entity - metamodel entity representing the entity of type Xpublic String getJpql()
public PredicateImpl getRestriction()
public <U> SubqueryImpl<U> subquery(Class<U> type)
U - type of the sub querytype - the subquery result typepublic CriteriaModify<T> where(Expression<Boolean> restriction)
restriction - a simple or compound boolean expressionpublic CriteriaModify<T> where(Predicate... restrictions)
restrictions - zero or more restriction predicatesCopyright © 2012 Batoo Software & Consultancy. All Rights Reserved.