## Uses of Interface
javax.persistence.criteria.Root

- Packages that use Root
  Package | Description
  --- | ---
  javax.persistence.criteria | Java Persistence Criteria API

- - ### Uses of Root in javax.persistence.criteria

    Methods in javax.persistence.criteria that return Root
    Modifier and Type | Method and Description
    --- | ---
    `<Y> Root<Y>` | Subquery.`correlate(Root<Y> parentRoot)` Create a subquery root correlated to a root of the enclosing query.
    `Root<T>` | CriteriaUpdate.`from(Class<T> entityClass)` Create and add a query root corresponding to the entity that is the target of the update.
    `Root<T>` | CriteriaDelete.`from(Class<T> entityClass)` Create and add a query root corresponding to the entity that is the target of the delete.
    `<X> Root<X>` | AbstractQuery.`from(Class<X> entityClass)` Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots.
    `Root<T>` | CriteriaUpdate.`from(EntityType<T> entity)` Create and add a query root corresponding to the entity that is the target of the update.
    `Root<T>` | CriteriaDelete.`from(EntityType<T> entity)` Create and add a query root corresponding to the entity that is the target of the delete.
    `<X> Root<X>` | AbstractQuery.`from(EntityType<X> entity)` Create and add a query root corresponding to the given entity, forming a cartesian product with any existing roots.
    `Root<T>` | CriteriaUpdate.`getRoot()` Return the query root.
    `Root<T>` | CriteriaDelete.`getRoot()` Return the query root.
    `<X,T extends X> Root<T>` | CriteriaBuilder.`treat(Root<X> root, Class<T> type)` Downcast Root object to the specified type.

    Methods in javax.persistence.criteria that return types with arguments of type Root
    Modifier and Type | Method and Description
    --- | ---
    `Set<Root<?>>` | AbstractQuery.`getRoots()` Return the query roots.

    Methods in javax.persistence.criteria with parameters of type Root
    Modifier and Type | Method and Description
    --- | ---
    `<Y> Root<Y>` | Subquery.`correlate(Root<Y> parentRoot)` Create a subquery root correlated to a root of the enclosing query.
    `<X,T extends X> Root<T>` | CriteriaBuilder.`treat(Root<X> root, Class<T> type)` Downcast Root object to the specified type.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.