## Uses of Interface
javax.persistence.metamodel.EntityType

- Packages that use EntityType
  Package | Description
  --- | ---
  javax.persistence.criteria | Java Persistence Criteria API
  javax.persistence.metamodel | Java Persistence Metamodel API

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

    Methods in javax.persistence.criteria that return EntityType
    Modifier and Type | Method and Description
    --- | ---
    `EntityType<X>` | Root.`getModel()` Return the metamodel entity corresponding to the root.

    Methods in javax.persistence.criteria with parameters of type EntityType
    Modifier and Type | Method and Description
    --- | ---
    `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.

  - ### Uses of EntityType in javax.persistence.metamodel

    Methods in javax.persistence.metamodel that return EntityType
    Modifier and Type | Method and Description
    --- | ---
    `<X> EntityType<X>` | Metamodel.`entity(Class<X> cls)` Return the metamodel entity type representing the entity.

    Methods in javax.persistence.metamodel that return types with arguments of type EntityType
    Modifier and Type | Method and Description
    --- | ---
    `Set<EntityType<?>>` | Metamodel.`getEntities()` Return the metamodel entity types.

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