Class RelationPropertyIntrospector
java.lang.Object
io.jmix.aitools.dataload.introspection.introspector.AbstractPropertyIntrospector
io.jmix.aitools.dataload.introspection.introspector.RelationPropertyIntrospector
- All Implemented Interfaces:
MetaPropertyIntrospector
@Component("aitls_RelationPropertyIntrospector")
public class RelationPropertyIntrospector
extends AbstractPropertyIntrospector
Introspects association and composition properties into a
RelationPropertyDescriptor.-
Field Summary
Fields inherited from class io.jmix.aitools.dataload.introspection.introspector.AbstractPropertyIntrospector
messageTools, metadataTools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable StringgetMappedByValue(MetaProperty property) @Nullable EntityPropertyDescriptorintrospect(MetaProperty property) Introspects aMetaPropertyto an AI-optimized property descriptor.protected booleanisOptionalRelation(MetaProperty property) booleansupports(MetaProperty property) Checks if this introspector can handle the givenMetaPropertytype.Methods inherited from class io.jmix.aitools.dataload.introspection.introspector.AbstractPropertyIntrospector
getComment, getEntityLocalizedNames, getMandatory, getPersistent, getPropertyCaptionFallbackKey, getPropertyLocalizedNames, getPropertyType, isEntityCaptionFallback, isIdentifier
-
Constructor Details
-
RelationPropertyIntrospector
public RelationPropertyIntrospector()
-
-
Method Details
-
supports
Description copied from interface:MetaPropertyIntrospectorChecks if this introspector can handle the givenMetaPropertytype.- Parameters:
property- theMetaPropertyto check- Returns:
- true if this introspector can handle this property type
-
introspect
Description copied from interface:MetaPropertyIntrospectorIntrospects aMetaPropertyto an AI-optimized property descriptor.- Parameters:
property- theMetaPropertyto introspect- Returns:
EntityPropertyDescriptorrepresentation of this property ornullif this introspector cannot handle it
-
isOptionalRelation
-
getMappedByValue
-