Class RelationPropertyDescriptor
java.lang.Object
io.jmix.aitools.dataload.introspection.model.AbstractEntityPropertyDescriptor
io.jmix.aitools.dataload.introspection.model.RelationPropertyDescriptor
- All Implemented Interfaces:
EntityPropertyDescriptor
Descriptor of an association or composition (relation) entity property.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected @Nullable Stringprotected @Nullable Booleanprotected StringFields inherited from class io.jmix.aitools.dataload.introspection.model.AbstractEntityPropertyDescriptor
comment, identifier, javaType, localizedNames, mandatory, name, persistent, propertyType -
Constructor Summary
ConstructorsConstructorDescriptionRelationPropertyDescriptor(String name, List<String> localizedNames, String javaType, String propertyType, @Nullable Boolean identifier, Boolean persistent, Boolean mandatory, @Nullable String comment, @Nullable String mappedBy, String targetEntityName, List<String> targetEntityLocalizedNames, @Nullable Boolean optionalRelation, String cardinality) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the relation cardinality (for example"ONE_TO_MANY").@Nullable StringReturns the name of the inverse property that owns this relation.@Nullable BooleanReturns whether the relation is optional.Returns the captions of the target entity for the configured locales.Returns the name of the entity this relation points to.Methods inherited from class io.jmix.aitools.dataload.introspection.model.AbstractEntityPropertyDescriptor
getComment, getIdentifier, getJavaType, getLocalizedNames, getMandatory, getName, getPersistent, getPropertyType, toString
-
Field Details
-
mappedBy
-
targetEntityName
-
targetEntityLocalizedNames
-
optionalRelation
-
cardinality
-
-
Constructor Details
-
RelationPropertyDescriptor
public RelationPropertyDescriptor(String name, List<String> localizedNames, String javaType, String propertyType, @Nullable Boolean identifier, Boolean persistent, Boolean mandatory, @Nullable String comment, @Nullable String mappedBy, String targetEntityName, List<String> targetEntityLocalizedNames, @Nullable Boolean optionalRelation, String cardinality)
-
-
Method Details
-
getMappedBy
Returns the name of the inverse property that owns this relation.- Returns:
mappedByproperty name, ornullif this side owns the relation
-
getTargetEntityName
Returns the name of the entity this relation points to.- Returns:
- target entity name
-
getTargetEntityLocalizedNames
Returns the captions of the target entity for the configured locales.- Returns:
- localized target entity names
-
getOptionalRelation
Returns whether the relation is optional.- Returns:
falseif the relation is required, ornullif it is optional
-
getCardinality
Returns the relation cardinality (for example"ONE_TO_MANY").- Returns:
- cardinality name
-
fieldsToString
- Overrides:
fieldsToStringin classAbstractEntityPropertyDescriptor
-