Class SessionImpl
java.lang.Object
io.jmix.core.metamodel.model.impl.SessionImpl
- All Implemented Interfaces:
Session,SessionImplementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable MetaClassSearch MetaClass by the corresponding Java class in the whole metamodel.@Nullable MetaClassSearch MetaClass by its name in the whole metamodel.Search MetaClass by the corresponding Java class in the whole metamodel.Search MetaClass by its name in the whole metamodel.Returns a copy of meta classes indexed by Java type.Returns a copy of meta classes indexed by entity name.voidregisterClass(MetaClass metaClass) voidregisterClass(String name, Class javaClass, MetaClass metaClass) voidReplaces internal meta-class indexes with the provided mappings.voidunregisterClass(MetaClass metaClass)
-
Constructor Details
-
SessionImpl
public SessionImpl()
-
-
Method Details
-
findClass
Description copied from interface:SessionSearch MetaClass by its name in the whole metamodel. -
getClass
Description copied from interface:SessionSearch MetaClass by its name in the whole metamodel. -
findClass
Description copied from interface:SessionSearch MetaClass by the corresponding Java class in the whole metamodel. -
getClass
Description copied from interface:SessionSearch MetaClass by the corresponding Java class in the whole metamodel. -
getClasses
- Specified by:
getClassesin interfaceSession- Returns:
- collection of all MetaClasses in the whole metamodel
-
registerClass
- Specified by:
registerClassin interfaceSessionImplementation
-
registerClass
- Specified by:
registerClassin interfaceSessionImplementation
-
unregisterClass
- Specified by:
unregisterClassin interfaceSessionImplementation
-
getClassByNameSnapshot
Returns a copy of meta classes indexed by entity name.Intended for metadata snapshot cloning.
-
getClassByClassSnapshot
Returns a copy of meta classes indexed by Java type.Intended for metadata snapshot cloning.
-
replaceMappings
Replaces internal meta-class indexes with the provided mappings.Intended for publishing a fully rebuilt session snapshot.
- Parameters:
classByName- meta classes indexed by entity nameclassByClass- meta classes indexed by Java type
-