Class AbstractAssociationGenerator

    • Constructor Detail

      • AbstractAssociationGenerator

        public AbstractAssociationGenerator()
    • Method Detail

      • getAssociationName

        protected java.lang.String getAssociationName​(TypeAttributeDescriptor descriptor)
        Generates association name based on the the provided attribute descriptor.
        Parameters:
        descriptor - a descriptor to generate the association name for.
        Returns:
        name of the descriptor in "FK_<item_type>_<attribute_type>" format, where item_type is the type containing the attribute descriptor and attribute_type is the type of the attribute values or, in other words, type referenced by the attribute.
      • asDescriptor

        protected TypeAttributeDescriptor asDescriptor​(IntegrationObjectItemAttributeModel attributeDefinitionModel)
        Converts attribute model to an attribute descriptor.
        Parameters:
        attributeDefinitionModel - a model to convert.
        Returns:
        attribute descriptor for the specified attribute model.
      • getSourceCardinality

        protected org.apache.olingo.odata2.api.edm.EdmMultiplicity getSourceCardinality​(TypeAttributeDescriptor descriptor)
        Determines cardinality of the source type presented in the specified attribute descriptor. Normally the source type is the item type containing the attribute.
        Parameters:
        descriptor - descriptor to derive the cardinality from
        Returns:
        multiplicity
      • getTargetCardinality

        protected org.apache.olingo.odata2.api.edm.EdmMultiplicity getTargetCardinality​(TypeAttributeDescriptor descriptor)
        Determines cardinality of the target type presented in the specified attribute descriptor. Normally the target type is the item type returned by the attribute.
        Parameters:
        descriptor - descriptor to derive the cardinality from
        Returns:
        multiplicity