T - the type of the modify criteria.public abstract class CriteriaModify<T> extends BaseQueryImpl<T>
| Constructor and Description |
|---|
CriteriaModify(MetamodelImpl metamodel) |
CriteriaModify(MetamodelImpl metamodel,
String qlString) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.criteria.Root<T> |
from(Class<T> entityClass)
Create and add a query root corresponding to the entity that is the target of the delete.
|
javax.persistence.criteria.Root<T> |
from(javax.persistence.metamodel.EntityType<T> entity)
Create and add a query root corresponding to the entity that is the target of the delete.
|
protected String |
generateSqlRestriction()
Returns the restriction for the query.
|
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.
|
boolean |
isInternal()
Returns if the query is internal.
|
<U> SubqueryImpl<U> |
subquery(Class<U> type)
Create a subquery of the query.
|
CriteriaModify<T> |
where(javax.persistence.criteria.Expression<Boolean> restriction)
Modify the query to restrict the target of the deletion according to the specified boolean expression.
|
CriteriaModify<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.
|
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 CriteriaModify(MetamodelImpl metamodel, String qlString)
metamodel - the matamodelqlString - the JPQL querypublic javax.persistence.criteria.Root<T> from(Class<T> entityClass)
entityClass - the entity classpublic javax.persistence.criteria.Root<T> from(javax.persistence.metamodel.EntityType<T> entity)
entity - metamodel entity representing the entity of type Xprotected String generateSqlRestriction()
public String getJpql()
public PredicateImpl getRestriction()
public boolean isInternal()
public <U> SubqueryImpl<U> subquery(Class<U> type)
U - type of the sub querytype - the subquery result typepublic CriteriaModify<T> where(javax.persistence.criteria.Expression<Boolean> restriction)
restriction - a simple or compound boolean expressionpublic CriteriaModify<T> where(javax.persistence.criteria.Predicate... restrictions)
restrictions - zero or more restriction predicatesCopyright © 2012-2013 Batoo. All Rights Reserved.