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:
jakarta.persistence.criteria.CommonAbstractCriteria,jakarta.persistence.criteria.CriteriaDelete<T>,Serializable
public class CriteriaDeleteImpl<T> extends CommonAbstractCriteriaImpl<T> implements jakarta.persistence.criteria.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
- Author:
- Chris Delahunt
- See Also:
CriteriaDelete, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected jakarta.persistence.criteria.Root<T>root-
Fields inherited from class org.eclipse.persistence.internal.jpa.querydef.CommonAbstractCriteriaImpl
metamodel, parameters, queryBuilder, queryType, where
-
-
Constructor Summary
Constructors Constructor Description CriteriaDeleteImpl(jakarta.persistence.metamodel.Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.persistence.criteria.Root<T>from(jakarta.persistence.metamodel.EntityType<T> entity)jakarta.persistence.criteria.Root<T>from(Class<T> entityClass)protected ExpressiongetBaseExpression()protected DatabaseQuerygetDatabaseQuery()jakarta.persistence.criteria.Root<T>getRoot()protected voidintegrateRoot(RootImpl root)Used to use a root from a different query.jakarta.persistence.criteria.CriteriaDelete<T>where(jakarta.persistence.criteria.Expression<Boolean> restriction)Modify the query to restrict the query results according to the specified boolean expression.jakarta.persistence.criteria.CriteriaDelete<T>where(jakarta.persistence.criteria.Predicate... restrictions)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.CommonAbstractCriteriaImpl
addParameter, findRootAndParameters, findRootAndParameters, getParameters, getRestriction, getResultType, internalFrom, internalFrom, subquery, translate
-
-
-
-
Field Detail
-
root
protected jakarta.persistence.criteria.Root<T> root
-
-
Constructor Detail
-
CriteriaDeleteImpl
public CriteriaDeleteImpl(jakarta.persistence.metamodel.Metamodel metamodel, CriteriaBuilderImpl queryBuilder, Class<T> resultType)
-
-
Method Detail
-
from
public jakarta.persistence.criteria.Root<T> from(Class<T> entityClass)
- Specified by:
fromin interfacejakarta.persistence.criteria.CriteriaDelete<T>
-
from
public jakarta.persistence.criteria.Root<T> from(jakarta.persistence.metamodel.EntityType<T> entity)
- Specified by:
fromin interfacejakarta.persistence.criteria.CriteriaDelete<T>
-
getRoot
public jakarta.persistence.criteria.Root<T> getRoot()
- Specified by:
getRootin interfacejakarta.persistence.criteria.CriteriaDelete<T>
-
where
public jakarta.persistence.criteria.CriteriaDelete<T> where(jakarta.persistence.criteria.Expression<Boolean> restriction)
Description 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 interfacejakarta.persistence.criteria.CriteriaDelete<T>- Overrides:
wherein classCommonAbstractCriteriaImpl<T>- Parameters:
restriction- a simple or compound boolean expression- Returns:
- the modified query
-
where
public jakarta.persistence.criteria.CriteriaDelete<T> where(jakarta.persistence.criteria.Predicate... restrictions)
Description 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 interfacejakarta.persistence.criteria.CriteriaDelete<T>- Overrides:
wherein classCommonAbstractCriteriaImpl<T>- Parameters:
restrictions- zero or more restriction predicates- Returns:
- the modified query
-
integrateRoot
protected void integrateRoot(RootImpl root)
Description copied from class:CommonAbstractCriteriaImplUsed to use a root from a different query.- Specified by:
integrateRootin classCommonAbstractCriteriaImpl<T>
-
getBaseExpression
protected Expression getBaseExpression()
- Specified by:
getBaseExpressionin classCommonAbstractCriteriaImpl<T>
-
getDatabaseQuery
protected DatabaseQuery getDatabaseQuery()
- Specified by:
getDatabaseQueryin classCommonAbstractCriteriaImpl<T>
-
-