Class KeyValueMetaProperty

java.lang.Object
io.jmix.core.metamodel.model.impl.MetadataObjectImpl
io.jmix.core.impl.keyvalue.KeyValueMetaProperty
All Implemented Interfaces:
MetadataObject, MetaProperty

public class KeyValueMetaProperty extends MetadataObjectImpl implements MetaProperty
MetaProperty for KeyValueEntity.
  • Field Details

    • metaClass

      protected final MetaClass metaClass
    • range

      protected final Range range
    • javaClass

      protected final Class<?> javaClass
    • mandatory

      protected final Boolean mandatory
    • annotatedElement

      protected final AnnotatedElement annotatedElement
    • type

      protected final MetaProperty.Type type
    • store

      protected Store store
  • Constructor Details

  • Method Details

    • getSession

      public Session getSession()
      Specified by:
      getSession in interface MetaProperty
      Returns:
      containing MetaModel instance. Null signifies a temporary metaclass, not associated with an entity class.
    • getDomain

      public MetaClass getDomain()
      Specified by:
      getDomain in interface MetaProperty
      Returns:
      MetaClass, containing this MetaProperty.
      In case of ReplaceEntity returns extended meta class.
    • getRange

      public Range getRange()
      Specified by:
      getRange in interface MetaProperty
      Returns:
      Range of this property.
    • getType

      public MetaProperty.Type getType()
      Specified by:
      getType in interface MetaProperty
      Returns:
      property type (DATATYPE, ENUM, ASSOCIATION, COMPOSITION)
    • isMandatory

      public boolean isMandatory()
      Specified by:
      isMandatory in interface MetaProperty
      Returns:
      true if the corresponding entity attribute must contain a value
    • isReadOnly

      public boolean isReadOnly()
      Specified by:
      isReadOnly in interface MetaProperty
      Returns:
      true if the corresponding entity attribute is read-only
    • getInverse

      public MetaProperty getInverse()
      Specified by:
      getInverse in interface MetaProperty
      Returns:
      a MetaProperty from the opposite side of relation, or null if this is not a reference property
    • getAnnotatedElement

      public AnnotatedElement getAnnotatedElement()
      Specified by:
      getAnnotatedElement in interface MetaProperty
      Returns:
      corresponding Java field or method as AnnotatedElement object
    • getJavaType

      public Class<?> getJavaType()
      Specified by:
      getJavaType in interface MetaProperty
      Returns:
      Java class of the corresponding field or method's return type
    • getDeclaringClass

      public Class<?> getDeclaringClass()
      Specified by:
      getDeclaringClass in interface MetaProperty
      Returns:
      Java class which declares the corresponding field or method
    • getStore

      public Store getStore()
      Specified by:
      getStore in interface MetaProperty
    • setStore

      public void setStore(Store store)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object