Package io.jmix.core.entity
Interface HasInstanceMetaClass
- All Known Implementing Classes:
KeyValueEntity
public interface HasInstanceMetaClass
Interface to be implemented by entities that are not included in static metadata, but can provide a
MetaClass
specifically for each instance.-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetInstanceMetaClass(MetaClass metaClass) Sets the instance metaclass
-
Method Details
-
getInstanceMetaClass
MetaClass getInstanceMetaClass()- Returns:
- metaclass of this entity instance.
- Throws:
IllegalStateException- if the instance has no metaclass specified
-
setInstanceMetaClass
Sets the instance metaclass- Parameters:
metaClass-
-
hasInstanceMetaClass
boolean hasInstanceMetaClass()- Returns:
- true if the instance has a metaclass and call of
getInstanceMetaClass()is safe
-