|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Metamodel
Provides access to the metamodel of persistent entities in the persistence unit.
Method Summary | ||
---|---|---|
|
embeddable(java.lang.Class<X> cls)
Return the metamodel embeddable type representing the embeddable class. |
|
|
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. |
|
|
managedType(java.lang.Class<X> cls)
Return the metamodel managed type representing the entity, mapped superclass, or embeddable class. |
Method Detail |
---|
<X> EntityType<X> entity(java.lang.Class<X> cls)
cls
- the type of the represented entity
java.lang.IllegalArgumentException
- if not an entity<X> ManagedType<X> managedType(java.lang.Class<X> cls)
cls
- the type of the represented managed class
java.lang.IllegalArgumentException
- if not a managed class<X> EmbeddableType<X> embeddable(java.lang.Class<X> cls)
cls
- the type of the represented embeddable class
java.lang.IllegalArgumentException
- if not an embeddable classjava.util.Set<ManagedType<?>> getManagedTypes()
java.util.Set<EntityType<?>> getEntities()
java.util.Set<EmbeddableType<?>> getEmbeddables()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34