Uses of Interface
jakarta.persistence.criteria.Root

Packages that use Root
Package
Description
Jakarta Persistence Criteria API
  • Uses of Root in jakarta.persistence.criteria

    Methods in jakarta.persistence.criteria that return Root
    Modifier and Type
    Method
    Description
    <Y> Root<Y>
    Subquery.correlate(Root<Y> parentRoot)
    Create a subquery root correlated to a root of the enclosing query.
    <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.
    <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.
    CriteriaDelete.from(EntityType<T> entity)
    Create and add a query root corresponding to the entity that is the target of the DELETE.
    CriteriaDelete.from(Class<T> entityClass)
    Create and add a query root corresponding to the entity that is the target of the DELETE.
    CriteriaUpdate.from(EntityType<T> entity)
    Create and add a query root corresponding to the entity that is the target of the update.
    CriteriaUpdate.from(Class<T> entityClass)
    Create and add a query root corresponding to the entity that is the target of the update.
    CriteriaDelete.getRoot()
    Return the query root.
    CriteriaUpdate.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 jakarta.persistence.criteria that return types with arguments of type Root
    Modifier and Type
    Method
    Description
    Set<Root<?>>
    AbstractQuery.getRoots()
    Return the query roots.
    Methods in jakarta.persistence.criteria with parameters of type Root
    Modifier and Type
    Method
    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.