Interface AssociationGenerator

    • Method Detail

      • generate

        org.apache.olingo.odata2.api.edm.provider.Association generate​(TypeAttributeDescriptor descriptor)
        Generates an association for the referenced TypeAttributeDescriptor
        Parameters:
        descriptor - the integration object attribute descriptor
        Returns:
        the association
      • generate

        @Deprecated(since="1905.08-CEP",
                    forRemoval=true)
        org.apache.olingo.odata2.api.edm.provider.Association generate​(IntegrationObjectItemAttributeModel attribute)
        Deprecated, for removal: This API element is subject to removal in a future version.
        convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use the generate(TypeAttributeDescriptor) method.
        Generates an association for the referenced IntegrationObjectItemAttributeModel
        Specified by:
        generate in interface SchemaElementGenerator<org.apache.olingo.odata2.api.edm.provider.Association,​IntegrationObjectItemAttributeModel>
        Parameters:
        attribute - the integration object attribute
        Returns:
        the association
      • getSourceRole

        @Deprecated(since="1905.08-CEP",
                    forRemoval=true)
        java.lang.String getSourceRole​(IntegrationObjectItemAttributeModel attributeDefinitionModel)
        Deprecated, for removal: This API element is subject to removal in a future version.
        convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use the getSourceRole(TypeAttributeDescriptor) method.
        Derives the source role from the given attribute definition model
        Parameters:
        attributeDefinitionModel - the integration object attribute definition model
        Returns:
        the source role
      • getSourceRole

        @Deprecated(since="1905.10-CEP",
                    forRemoval=true)
        java.lang.String getSourceRole​(TypeAttributeDescriptor attributeDescriptor)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Use generate(TypeAttributeDescriptor) and then retrieve the role from the generated association's end2
        Derives the source role from the given attribute descriptor
        Parameters:
        attributeDescriptor - the integration object attribute descriptor
        Returns:
        the source role
      • getTargetRole

        @Deprecated(since="1905.08-CEP",
                    forRemoval=true)
        java.lang.String getTargetRole​(IntegrationObjectItemAttributeModel attributeDefinitionModel)
        Deprecated, for removal: This API element is subject to removal in a future version.
        convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use the getTargetRole(TypeAttributeDescriptor) method.
        Derives the target role from the given attribute definition model
        Parameters:
        attributeDefinitionModel - the integration object attribute definition model
        Returns:
        the target role
      • getTargetRole

        @Deprecated(since="1905.10-CEP",
                    forRemoval=true)
        java.lang.String getTargetRole​(TypeAttributeDescriptor descriptor)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Use generate(TypeAttributeDescriptor) and then retrieve the role from the generated association's end2
        Derives the target role from the given attribute descriptor
        Parameters:
        descriptor - the integration object attribute descriptor
        Returns:
        the target role
      • getAssociationName

        @Deprecated(since="1905.08-CEP",
                    forRemoval=true)
        java.lang.String getAssociationName​(IntegrationObjectItemAttributeModel attributeDefinitionModel)
        Deprecated, for removal: This API element is subject to removal in a future version.
        convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use the getAssociationName(TypeAttributeDescriptor) method.
        Derives the association name from the given attribute definition model
        Parameters:
        attributeDefinitionModel - the integration object attribute definition model
        Returns:
        the association name
      • getAssociationName

        @Deprecated(since="1905.10-CEP",
                    forRemoval=true)
        java.lang.String getAssociationName​(TypeAttributeDescriptor attributeDescriptor)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Use generate(TypeAttributeDescriptor) and then retrieve the name from the generated association
        Derives the association name from the given attribute descriptor
        Parameters:
        attributeDescriptor - the integration object attribute descriptor
        Returns:
        the association name
      • isApplicable

        @Deprecated(since="1905.08-CEP",
                    forRemoval=true)
        boolean isApplicable​(IntegrationObjectItemAttributeModel attributeDefinitionModel)
        Deprecated, for removal: This API element is subject to removal in a future version.
        convert the IntegrationObjectItemAttributeModel to a TypeAttributeDescriptor and use the isApplicable(TypeAttributeDescriptor) method.
        Determines if this association generator is applicable for the given attribute
        Parameters:
        attributeDefinitionModel - the attribute we are verifying
        Returns:
        true if applicable, otherwise false
      • isApplicable

        boolean isApplicable​(TypeAttributeDescriptor attributeDescriptor)
        Determines if this association generator is applicable for the given attribute descriptor
        Parameters:
        attributeDescriptor - the attribute descriptor we are verifying
        Returns:
        true if applicable, otherwise false