Package io.jmix.dynattr.impl
Class DynAttrMetaProperty
java.lang.Object
io.jmix.core.metamodel.model.impl.MetadataObjectImpl
io.jmix.dynattr.impl.DynAttrMetaProperty
- All Implemented Interfaces:
MetadataObject
,MetaProperty
,Serializable
Note that transient attributes should be specified after deserialization and before usage
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.core.metamodel.model.MetaProperty
MetaProperty.Type
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnnotatedElement
protected String
protected final MetaProperty.Type
Fields inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
annotations
-
Constructor Summary
ConstructorDescriptionDynAttrMetaProperty
(String name, MetaClass ownerMetaClass, Class<?> javaClass, Range range, MetaProperty.Type type) -
Method Summary
Methods inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
getAnnotations
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
-
Field Details
-
name
-
annotatedElement
-
type
-
-
Constructor Details
-
DynAttrMetaProperty
public DynAttrMetaProperty(String name, MetaClass ownerMetaClass, Class<?> javaClass, Range range, MetaProperty.Type type)
-
-
Method Details
-
getName
Description copied from interface:MetadataObject
MetadataObject unique name.- Specified by:
getName
in interfaceMetadataObject
- Overrides:
getName
in classMetadataObjectImpl
-
setName
-
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
-
equals
-
hashCode
public int hashCode()
-