public interface Metamodel
Provides access to the metamodel of persistent entities in the
 persistence unit.
- Since:
 - 2.0
 
- 
Method Summary
Modifier and TypeMethodDescription<X> EmbeddableType<X> embeddable(Class<X> cls) Return the metamodel embeddable type representing the embeddable class.<X> EntityType<X> Return the metamodel entity type representing the entity.EntityType<?> Return the metamodel entity type representing the entity.Set<EmbeddableType<?>> Return the metamodel embeddable types.Set<EntityType<?>> Return the metamodel entity types.Set<ManagedType<?>> Return the metamodel managed types.<X> ManagedType<X> managedType(Class<X> cls) Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. 
- 
Method Details
- 
entity
Return the metamodel entity type representing the entity.- Parameters:
 entityName- the name of the represented entity- Returns:
 - the metamodel entity type
 - Throws:
 IllegalArgumentException- if not an entity- Since:
 - 3.2
 - See Also:
 
 - 
entity
Return the metamodel entity type representing the entity.- Parameters:
 cls- the type of the represented entity- Returns:
 - the metamodel entity type
 - Throws:
 IllegalArgumentException- if not an entity
 - 
managedType
Return the metamodel managed type representing the entity, mapped superclass, or embeddable class.- Parameters:
 cls- the type of the represented managed class- Returns:
 - the metamodel managed type
 - Throws:
 IllegalArgumentException- if not a managed class
 - 
embeddable
Return the metamodel embeddable type representing the embeddable class.- Parameters:
 cls- the type of the represented embeddable class- Returns:
 - the metamodel embeddable type
 - Throws:
 IllegalArgumentException- if not an embeddable class
 - 
getManagedTypes
Set<ManagedType<?>> getManagedTypes()Return the metamodel managed types.- Returns:
 - the metamodel managed types
 
 - 
getEntities
Set<EntityType<?>> getEntities()Return the metamodel entity types.- Returns:
 - the metamodel entity types
 
 - 
getEmbeddables
Set<EmbeddableType<?>> getEmbeddables()Return the metamodel embeddable types. Returns am empty set if there are no embeddable types.- Returns:
 - the metamodel embeddable types
 
 
 -