Package io.jmix.core.impl.keyvalue
Class KeyValueMetaClass
java.lang.Object
io.jmix.core.metamodel.model.impl.MetadataObjectImpl
io.jmix.core.impl.keyvalue.KeyValueMetaClass
- All Implemented Interfaces:
MetaClass
,MetadataObject
,Externalizable
,Serializable
MetaClass for
KeyValueEntity
.- See Also:
-
Field Summary
Fields inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
annotations, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(MetaProperty property) findProperty
(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 class Note that this method don't take into account extensions(e.g.getStore()
void
void
removeProperty
(String propertyName) void
toString()
void
Methods inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
getAnnotations, getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.jmix.core.metamodel.model.MetadataObject
getAnnotations, getName
-
Constructor Details
-
KeyValueMetaClass
public KeyValueMetaClass()
-
-
Method Details
-
addProperty
-
removeProperty
-
getAncestor
Description copied from interface:MetaClass
Immediate ancestor of the object, or null if there is no one.- Specified by:
getAncestor
in interfaceMetaClass
-
getAncestors
Description copied from interface:MetaClass
All ancestors of the metaclass, in order going up from the immediate ancestor.- Specified by:
getAncestors
in interfaceMetaClass
-
getDescendants
Description copied from interface:MetaClass
All descendants of the metaclass, recursively. Order is undefined.- Specified by:
getDescendants
in interfaceMetaClass
-
getSession
- Specified by:
getSession
in interfaceMetaClass
- Returns:
- containing MetaModel instance. Null signifies a temporary metaclass, not associated with an entity class.
-
getJavaClass
- Specified by:
getJavaClass
in interfaceMetaClass
- Returns:
- corresponding Java class
-
findProperty
Description copied from interface:MetaClass
Get MetaProperty by its name.- Specified by:
findProperty
in interfaceMetaClass
- Returns:
- MetaProperty instance, or null if no such property found
-
getProperty
Description copied from interface:MetaClass
Get MetaProperty by its name.- Specified by:
getProperty
in interfaceMetaClass
- Returns:
- MetaProperty instance. Throws exception if not found.
-
getPropertyPath
Description copied from interface:MetaClass
Returns MetaPropertyPath object, representing path to the property from the current class Note that this method don't take into account extensions(e.g. Dynamic Attributes add-on) and it returns null in case of not static attributes(attributes from extension). For getting all attributes (including attributes from extensions) useMetadataTools.resolveMetaPropertyPath(MetaClass, String)
orMetadataTools.resolveMetaPropertyPathOrNull(MetaClass, String)
methods.- Specified by:
getPropertyPath
in interfaceMetaClass
- Parameters:
propertyPath
- dot-separated string- Returns:
- MetaPropertyPath instance, or null if the input parameter doesn't represent a valid path.
-
getOwnProperties
- Specified by:
getOwnProperties
in interfaceMetaClass
- Returns:
- collection of meta properties directly owned by this metaclass.
-
getProperties
- Specified by:
getProperties
in interfaceMetaClass
- Returns:
- collection of meta properties owned by this metaclass and all its ancestors.
-
getStore
-
setStore
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-