Package io.jmix.core.impl.keyvalue
Class KeyValueMetaProperty
java.lang.Object
io.jmix.core.metamodel.model.impl.MetadataObjectImpl
io.jmix.core.impl.keyvalue.KeyValueMetaProperty
- All Implemented Interfaces:
MetadataObject
,MetaProperty
MetaProperty for
KeyValueEntity
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from interface io.jmix.core.metamodel.model.MetaProperty
MetaProperty.Type
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnnotatedElement
protected final Class
protected final Boolean
protected final MetaClass
protected final Range
protected Store
protected final MetaProperty.Type
Fields inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
name
-
Constructor Summary
ConstructorDescriptionKeyValueMetaProperty
(MetaClass metaClass, String name, Class javaClass, Range range, MetaProperty.Type type) -
Method Summary
Methods inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
getAnnotations, getName
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.core.metamodel.model.MetadataObject
getAnnotations, getName
-
Field Details
-
metaClass
-
range
-
javaClass
-
mandatory
-
annotatedElement
-
type
-
store
-
-
Constructor Details
-
KeyValueMetaProperty
public KeyValueMetaProperty(MetaClass metaClass, String name, Class javaClass, Range range, MetaProperty.Type type)
-
-
Method Details
-
getSession
- Specified by:
getSession
in interfaceMetaProperty
- Returns:
- containing MetaModel instance. Null signifies a temporary metaclass, not associated with an entity class.
-
getDomain
- Specified by:
getDomain
in interfaceMetaProperty
- Returns:
- MetaClass, containing this MetaProperty.
In case ofReplaceEntity
returns extended meta class.
-
getRange
- Specified by:
getRange
in interfaceMetaProperty
- Returns:
- Range of this property.
-
getType
- Specified by:
getType
in interfaceMetaProperty
- Returns:
- property type (DATATYPE, ENUM, ASSOCIATION, COMPOSITION)
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatory
in interfaceMetaProperty
- Returns:
- true if the corresponding entity attribute must contain a value
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in interfaceMetaProperty
- Returns:
- true if the corresponding entity attribute is read-only
-
getInverse
- Specified by:
getInverse
in interfaceMetaProperty
- Returns:
- a MetaProperty from the opposite side of relation, or null if this is not a reference property
-
getAnnotatedElement
- Specified by:
getAnnotatedElement
in interfaceMetaProperty
- Returns:
- corresponding Java field or method as AnnotatedElement object
-
getJavaType
- Specified by:
getJavaType
in interfaceMetaProperty
- Returns:
- Java class of the corresponding field or method's return type
-
getDeclaringClass
- Specified by:
getDeclaringClass
in interfaceMetaProperty
- Returns:
- Java class which declares the corresponding field or method
-
getStore
- Specified by:
getStore
in interfaceMetaProperty
-
setStore
-
equals
-
hashCode
public int hashCode()
-