Module org.eclipse.persistence.jpa
Class CriteriaDeleteImpl<T>
java.lang.Object
org.eclipse.persistence.internal.jpa.querydef.CommonAbstractCriteriaImpl<T>
org.eclipse.persistence.internal.jpa.querydef.CriteriaDeleteImpl<T>
- All Implemented Interfaces:
- CommonAbstractCriteria,- CriteriaDelete<T>,- Serializable
public class CriteriaDeleteImpl<T>
extends CommonAbstractCriteriaImpl<T>
implements CriteriaDelete<T>
Purpose: Contains the implementation of the CriteriaDelete interface of the JPA criteria API.
Description: This is the container class for the components that define a Delete Query.
- Since:
- EclipseLink 2.5
- See Also:
- 
Field SummaryFieldsFields inherited from class org.eclipse.persistence.internal.jpa.querydef.CommonAbstractCriteriaImplmetamodel, parameters, queryBuilder, queryType, where
- 
Constructor SummaryConstructorsConstructorDescriptionCriteriaDeleteImpl(Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType) 
- 
Method SummaryModifier and TypeMethodDescriptionfrom(EntityType<T> entity) protected Expressionprotected DatabaseQuerygetRoot()protected voidintegrateRoot(RootImpl root) Used to use a root from a different query.where(Expression<Boolean> restriction) Modify the query to restrict the query results according to the specified boolean expression.Modify the query to restrict the query results according to the conjunction of the specified restriction predicates.Methods inherited from class org.eclipse.persistence.internal.jpa.querydef.CommonAbstractCriteriaImpladdParameter, findRootAndParameters, findRootAndParameters, getParameters, getRestriction, getResultType, internalFrom, internalFrom, subquery, translateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.CommonAbstractCriteriagetRestriction, subquery
- 
Field Details- 
root
 
- 
- 
Constructor Details- 
CriteriaDeleteImplpublic CriteriaDeleteImpl(Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType) 
 
- 
- 
Method Details- 
from- Specified by:
- fromin interface- CriteriaDelete<T>
 
- 
from- Specified by:
- fromin interface- CriteriaDelete<T>
 
- 
getRoot- Specified by:
- getRootin interface- CriteriaDelete<T>
 
- 
whereDescription copied from class:CommonAbstractCriteriaImplModify the query to restrict the query results according to the specified boolean expression. Replaces the previously added restriction(s), if any.- Specified by:
- wherein interface- CriteriaDelete<T>
- Overrides:
- wherein class- CommonAbstractCriteriaImpl<T>
- Parameters:
- restriction- a simple or compound boolean expression
- Returns:
- the modified query
 
- 
whereDescription copied from class:CommonAbstractCriteriaImplModify the query to restrict the query results according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed.- Specified by:
- wherein interface- CriteriaDelete<T>
- Overrides:
- wherein class- CommonAbstractCriteriaImpl<T>
- Parameters:
- restrictions- zero or more restriction predicates
- Returns:
- the modified query
 
- 
integrateRootDescription copied from class:CommonAbstractCriteriaImplUsed to use a root from a different query.- Specified by:
- integrateRootin class- CommonAbstractCriteriaImpl<T>
 
- 
getBaseExpression- Specified by:
- getBaseExpressionin class- CommonAbstractCriteriaImpl<T>
 
- 
getDatabaseQuery- Specified by:
- getDatabaseQueryin class- CommonAbstractCriteriaImpl<T>
 
 
-