Constructor and Description |
---|
SessionImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addModel(MetaModelImpl model) |
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() |
static void |
setSerializationSupportSession(Session serializationSupportSession) |
public static void setSerializationSupportSession(Session serializationSupportSession)
public MetaModel getModel(java.lang.String name)
public java.util.Collection<MetaModel> getModels()
@Nullable public MetaClass getClass(java.lang.String name)
Session
public MetaClass getClassNN(java.lang.String name)
Session
getClassNN
in interface Session
name
- entity name@Nullable public 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
public void addModel(MetaModelImpl model)