Class SessionImpl

java.lang.Object
io.jmix.core.metamodel.model.impl.SessionImpl
All Implemented Interfaces:
Session

public class SessionImpl extends Object implements Session
  • Constructor Details

    • SessionImpl

      public SessionImpl()
  • Method Details

    • findClass

      @Nullable public MetaClass findClass(String name)
      Description copied from interface: Session
      Search MetaClass by its name in the whole metamodel.
      Specified by:
      findClass in interface Session
      Parameters:
      name - entity name
      Returns:
      MetaClass instance or null if not found
    • getClass

      public MetaClass getClass(String name)
      Description copied from interface: Session
      Search MetaClass by its name in the whole metamodel.
      Specified by:
      getClass in interface Session
      Parameters:
      name - entity name
      Returns:
      MetaClass instance. Throws exception if not found.
    • findClass

      @Nullable public MetaClass findClass(Class<?> javaClass)
      Description copied from interface: Session
      Search MetaClass by the corresponding Java class in the whole metamodel.
      Specified by:
      findClass in interface Session
      Parameters:
      javaClass - Java class defining the entity
      Returns:
      MetaClass instance or null if not found
    • getClass

      public MetaClass getClass(Class<?> javaClass)
      Description copied from interface: Session
      Search MetaClass by the corresponding Java class in the whole metamodel.
      Specified by:
      getClass in interface Session
      Parameters:
      javaClass - Java class defining the entity
      Returns:
      MetaClass instance. Throws exception if not found.
    • getClasses

      public Collection<MetaClass> getClasses()
      Specified by:
      getClasses in interface Session
      Returns:
      collection of all MetaClasses in the whole metamodel
    • registerClass

      public void registerClass(MetaClassImpl metaClass)
    • registerClass

      public void registerClass(String name, Class javaClass, MetaClassImpl metaClass)