Package io.jmix.core.metamodel.model
Interface Session
- All Known Subinterfaces:
Metadata
,SessionImplementation
- All Known Implementing Classes:
MetadataImpl
,SessionImpl
public interface Session
Meta-model entry point.
-
Method Summary
Modifier and TypeMethodDescriptionSearch MetaClass by the corresponding Java class in the whole metamodel.Search 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.
-
Method Details
-
findClass
Search MetaClass by its name in the whole metamodel.- Parameters:
name
- entity name- Returns:
- MetaClass instance or null if not found
-
getClass
Search MetaClass by its name in the whole metamodel.- Parameters:
name
- entity name- Returns:
- MetaClass instance. Throws exception if not found.
-
findClass
Search MetaClass by the corresponding Java class in the whole metamodel.- Parameters:
javaClass
- Java class defining the entity- Returns:
- MetaClass instance or null if not found
-
getClass
Search MetaClass by the corresponding Java class in the whole metamodel.- Parameters:
javaClass
- Java class defining the entity- Returns:
- MetaClass instance. Throws exception if not found.
-
getClasses
Collection<MetaClass> getClasses()- Returns:
- collection of all MetaClasses in the whole metamodel
-