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
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from interface io.jmix.core.metamodel.model.MetaProperty
MetaProperty.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotatedElementprotected final Class<?>protected final Booleanprotected final MetaClassprotected final Rangeprotected Storeprotected final MetaProperty.TypeFields inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
annotations, name -
Constructor Summary
ConstructorsConstructorDescriptionKeyValueMetaProperty(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, getNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSessionin interfaceMetaProperty- Returns:
- containing MetaModel instance. Null signifies a temporary metaclass, not associated with an entity class.
-
getDomain
- Specified by:
getDomainin interfaceMetaProperty- Returns:
- MetaClass, containing this MetaProperty.
In case ofReplaceEntityreturns extended meta class.
-
getRange
- Specified by:
getRangein interfaceMetaProperty- Returns:
- Range of this property.
-
getType
- Specified by:
getTypein interfaceMetaProperty- Returns:
- property type (DATATYPE, ENUM, ASSOCIATION, COMPOSITION, EMBEDDED)
-
isMandatory
public boolean isMandatory()- Specified by:
isMandatoryin interfaceMetaProperty- Returns:
- true if the corresponding entity attribute must contain a value
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceMetaProperty- Returns:
- true if the corresponding entity attribute is read-only
-
getInverse
- Specified by:
getInversein interfaceMetaProperty- Returns:
- a MetaProperty from the opposite side of relation, or null if this is not a reference property
-
getAnnotatedElement
- Specified by:
getAnnotatedElementin interfaceMetaProperty- Returns:
- corresponding Java field or method as AnnotatedElement object
-
getJavaType
- Specified by:
getJavaTypein interfaceMetaProperty- Returns:
- Java class of the corresponding field or method's return type
-
getDeclaringClass
- Specified by:
getDeclaringClassin interfaceMetaProperty- Returns:
- Java class which declares the corresponding field or method
-
getStore
- Specified by:
getStorein interfaceMetaProperty
-
setStore
-
equals
-
hashCode
public int hashCode()
-