Package io.jmix.core.metamodel.model
Interface MetaClass
- All Superinterfaces:
MetadataObject
- All Known Implementing Classes:
KeyValueMetaClass
,MetaClassImpl
Metadata object representing an entity.
-
Method Summary
Modifier and TypeMethodDescriptionfindProperty
(String name) Get MetaProperty by its name.Immediate ancestor of the object, or null if there is no one.All ancestors of the metaclass, in order going up from the immediate ancestor.All descendants of the metaclass, recursively.<T> Class<T>
getProperty
(String name) Get MetaProperty by its name.getPropertyPath
(String propertyPath) Returns MetaPropertyPath object, representing path to the property from the current classgetStore()
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.
-
getJavaClass
- Returns:
- corresponding Java class
-
getAncestor
Immediate ancestor of the object, or null if there is no one. -
getAncestors
All ancestors of the metaclass, in order going up from the immediate ancestor. -
getDescendants
Collection<MetaClass> getDescendants()All descendants of the metaclass, recursively. Order is undefined. -
findProperty
Get MetaProperty by its name.- Returns:
- MetaProperty instance, or null if no such property found
-
getProperty
Get MetaProperty by its name.- Returns:
- MetaProperty instance. Throws exception if not found.
-
getPropertyPath
Returns MetaPropertyPath object, representing path to the property from the current class- Parameters:
propertyPath
- dot-separated string- Returns:
- MetaPropertyPath instance, or null if the input parameter doesn't represent a valid path.
-
getOwnProperties
Collection<MetaProperty> getOwnProperties()- Returns:
- collection of meta properties directly owned by this metaclass.
-
getProperties
Collection<MetaProperty> getProperties()- Returns:
- collection of meta properties owned by this metaclass and all its ancestors.
-
getStore
Store getStore()
-