public interface Metamodel
Modifier and Type | Method and Description |
---|---|
<X> EmbeddableType<X> |
embeddable(java.lang.Class<X> cls)
Return the metamodel embeddable type representing the
embeddable class.
|
<X> EntityType<X> |
entity(java.lang.Class<X> cls)
Return the metamodel entity type representing the entity.
|
java.util.Set<EmbeddableType<?>> |
getEmbeddables()
Return the metamodel embeddable types.
|
java.util.Set<EntityType<?>> |
getEntities()
Return the metamodel entity types.
|
java.util.Set<ManagedType<?>> |
getManagedTypes()
Return the metamodel managed types.
|
<X> ManagedType<X> |
managedType(java.lang.Class<X> cls)
Return the metamodel managed type representing the
entity, mapped superclass, or embeddable class.
|
<X> EntityType<X> entity(java.lang.Class<X> cls)
cls
- the type of the represented entityjava.lang.IllegalArgumentException
- if not an entity<X> ManagedType<X> managedType(java.lang.Class<X> cls)
cls
- the type of the represented managed classjava.lang.IllegalArgumentException
- if not a managed class<X> EmbeddableType<X> embeddable(java.lang.Class<X> cls)
cls
- the type of the represented embeddable classjava.lang.IllegalArgumentException
- if not an embeddable classjava.util.Set<ManagedType<?>> getManagedTypes()
java.util.Set<EntityType<?>> getEntities()
java.util.Set<EmbeddableType<?>> getEmbeddables()