T - the entity type that is the target of the deletepublic class CriteriaDeleteImpl<T> extends CriteriaModify<T>
| Constructor and Description |
|---|
CriteriaDeleteImpl(MetamodelImpl metamodel) |
CriteriaDeleteImpl(MetamodelImpl metamodel,
String qlString) |
| 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.
|
CriteriaDeleteImpl<T> |
where(javax.persistence.criteria.Expression<Boolean> restriction)
Modify the query to restrict the target of the deletion according to the specified boolean expression.
|
CriteriaDeleteImpl<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, generateSqlRestriction, getJpql, getRestriction, getRoot, isInternal, subquerygenerateTableAlias, getAlias, getAlias, getFieldAlias, getJdbcAdaptor, getMetamodel, getParameter, getParameters, getSql, getSqlParameters, setNextSqlParampublic CriteriaDeleteImpl(MetamodelImpl metamodel)
metamodel - the metamodelpublic CriteriaDeleteImpl(MetamodelImpl metamodel, String qlString)
metamodel - the metamodelqlString - the JPQL querypublic String generateJpql()
public String generateSql()
public boolean isQuery()
isQuery in class BaseQueryImpl<T>public CriteriaDeleteImpl<T> where(javax.persistence.criteria.Expression<Boolean> restriction)
where in class CriteriaModify<T>restriction - a simple or compound boolean expressionpublic CriteriaDeleteImpl<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.