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
FieldsModifier and TypeFieldDescriptionprotected final AnnotatedElementprotected Stringprotected final MetaProperty.TypeFields inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
annotations -
Constructor Summary
ConstructorsConstructorDescriptionDynAttrMetaProperty(String name, MetaClass ownerMetaClass, Class<?> javaClass, Range range, MetaProperty.Type type) -
Method Summary
Methods inherited from class io.jmix.core.metamodel.model.impl.MetadataObjectImpl
getAnnotationsMethods 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
-
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:MetadataObjectMetadataObject unique name.- Specified by:
getNamein interfaceMetadataObject- Overrides:
getNamein classMetadataObjectImpl
-
setName
-
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
-
equals
-
hashCode
public int hashCode()
-