Constructor and Description |
---|
CachingMetadataSession(Session delegate) |
Modifier and Type | Method and Description |
---|---|
MetaClass |
getClass(java.lang.Class<?> clazz)
Search MetaClass by the corresponding Java class in the whole metamodel.
|
MetaClass |
getClass(java.lang.String name)
Search MetaClass by its name in the whole metamodel.
|
java.util.Collection<MetaClass> |
getClasses() |
MetaClass |
getClassNN(java.lang.Class<?> clazz)
Search MetaClass by the corresponding Java class in the whole metamodel.
|
MetaClass |
getClassNN(java.lang.String name)
Search MetaClass by its name in the whole metamodel.
|
MetaModel |
getModel(java.lang.String name) |
java.util.Collection<MetaModel> |
getModels() |
public CachingMetadataSession(Session delegate)
public MetaModel getModel(java.lang.String name)
public java.util.Collection<MetaModel> getModels()
public MetaClass getClass(java.lang.String name)
Session
public MetaClass getClassNN(java.lang.String name)
Session
getClassNN
in interface Session
name
- entity namepublic MetaClass getClass(java.lang.Class<?> clazz)
Session
public MetaClass getClassNN(java.lang.Class<?> clazz)
Session
getClassNN
in interface Session
clazz
- Java class defining the entitypublic java.util.Collection<MetaClass> getClasses()
getClasses
in interface Session