Package io.jmix.core

Interface Metadata

All Superinterfaces:
Session
All Known Implementing Classes:
MetadataImpl

public interface Metadata extends Session
Central interface to provide metadata-related functionality.
  • Method Details

    • getSession

      Session getSession()
      Get Metadata session - interface providing access to MetaClasses and MetaProperties.
      Returns:
      current metadata session
    • getClass

      MetaClass getClass(Object entity)
      Returns MetaClass of the given entity.
      Parameters:
      entity - entity instance
      Returns:
      MetaClass instance
    • create

      <T> T create(Class<T> entityClass)
      Instantiate an entity, taking into account extended entities.
      Parameters:
      entityClass - entity class
      Returns:
      entity instance
    • create

      Object create(MetaClass metaClass)
      Instantiate an entity, taking into account extended entities.
      Parameters:
      metaClass - entity MetaClass
      Returns:
      entity instance
    • create

      Object create(String entityName)
      Instantiate an entity, taking into account extended entities.
      Parameters:
      entityName - entity name
      Returns:
      entity instance