Class CriteriaDeleteImpl<T>

  • All Implemented Interfaces:
    java.io.Serializable, javax.persistence.criteria.CommonAbstractCriteria, javax.persistence.criteria.CriteriaDelete<T>

    public class CriteriaDeleteImpl<T>
    extends CommonAbstractCriteriaImpl<T>
    implements javax.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 Detail

      • root

        protected javax.persistence.criteria.Root<T> root
    • Constructor Detail

      • CriteriaDeleteImpl

        public CriteriaDeleteImpl​(javax.persistence.metamodel.Metamodel metamodel,
                                  CriteriaBuilderImpl queryBuilder,
                                  java.lang.Class<T> resultType)
    • Method Detail

      • from

        public javax.persistence.criteria.Root<T> from​(java.lang.Class<T> entityClass)
        Specified by:
        from in interface javax.persistence.criteria.CriteriaDelete<T>
      • from

        public javax.persistence.criteria.Root<T> from​(javax.persistence.metamodel.EntityType<T> entity)
        Specified by:
        from in interface javax.persistence.criteria.CriteriaDelete<T>
      • getRoot

        public javax.persistence.criteria.Root<T> getRoot()
        Specified by:
        getRoot in interface javax.persistence.criteria.CriteriaDelete<T>
      • where

        public javax.persistence.criteria.CriteriaDelete<T> where​(javax.persistence.criteria.Expression<java.lang.Boolean> restriction)
        Description copied from class: CommonAbstractCriteriaImpl
        Modify the query to restrict the query results according to the specified boolean expression. Replaces the previously added restriction(s), if any.
        Specified by:
        where in interface javax.persistence.criteria.CriteriaDelete<T>
        Overrides:
        where in class CommonAbstractCriteriaImpl<T>
        Parameters:
        restriction - a simple or compound boolean expression
        Returns:
        the modified query
      • where

        public javax.persistence.criteria.CriteriaDelete<T> where​(javax.persistence.criteria.Predicate... restrictions)
        Description copied from class: CommonAbstractCriteriaImpl
        Modify 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:
        where in interface javax.persistence.criteria.CriteriaDelete<T>
        Overrides:
        where in class CommonAbstractCriteriaImpl<T>
        Parameters:
        restrictions - zero or more restriction predicates
        Returns:
        the modified query