Package io.jmix.core.metamodel.model
Interface MetaProperty
- All Superinterfaces:
MetadataObject
- All Known Implementing Classes:
DynAttrMetaProperty
,KeyValueMetaProperty
,MetaPropertyImpl
Metadata object representing an entity attribute.
-
Nested Class Summary
-
Method Summary
Methods inherited from interface io.jmix.core.metamodel.model.MetadataObject
getAnnotations, getName
-
Method Details
-
getSession
- Returns:
- containing MetaModel instance. Null signifies a temporary metaclass, not associated with an entity class.
-
getDomain
MetaClass getDomain()- Returns:
- MetaClass, containing this MetaProperty.
In case ofReplaceEntity
returns extended meta class.
-
getRange
Range getRange()- Returns:
- Range of this property.
-
getType
MetaProperty.Type getType()- Returns:
- property type (DATATYPE, ENUM, ASSOCIATION, COMPOSITION)
-
isMandatory
boolean isMandatory()- Returns:
- true if the corresponding entity attribute must contain a value
-
isReadOnly
boolean isReadOnly()- Returns:
- true if the corresponding entity attribute is read-only
-
getInverse
- Returns:
- a MetaProperty from the opposite side of relation, or null if this is not a reference property
-
getAnnotatedElement
AnnotatedElement getAnnotatedElement()- Returns:
- corresponding Java field or method as AnnotatedElement object
-
getJavaType
Class<?> getJavaType()- Returns:
- Java class of the corresponding field or method's return type
-
getDeclaringClass
- Returns:
- Java class which declares the corresponding field or method
-
getStore
Store getStore()
-