Class ComposedEntityTypeGenerator

java.lang.Object
de.hybris.platform.odata2services.odata.schema.entity.SingleEntityTypeGenerator
de.hybris.platform.odata2services.odata.schema.entity.ComposedEntityTypeGenerator
All Implemented Interfaces:
EntityTypeGenerator, SchemaElementGenerator<List<org.apache.olingo.odata2.api.edm.provider.EntityType>,IntegrationObjectItemModel>

@Deprecated(since="2211.FP1", forRemoval=true) public class ComposedEntityTypeGenerator extends SingleEntityTypeGenerator
Deprecated, for removal: This API element is subject to removal in a future version.
use instead.
A generator for generating an EntityType schema element from a IntegrationObjectItemModel.
  • Constructor Details

    • ComposedEntityTypeGenerator

      public ComposedEntityTypeGenerator()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • generateEntityType

      protected org.apache.olingo.odata2.api.edm.provider.EntityType generateEntityType(IntegrationObjectItemModel item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: SingleEntityTypeGenerator
      Generates a single entity type for the specified item delegating the entity parts creation to:
      Overrides:
      generateEntityType in class SingleEntityTypeGenerator
      Parameters:
      item - an item to generate the EDMX entity type for.
      Returns:
      the generated entity type.
      Subclasses make sure never return null from this method. If item cannot be generated, then SingleEntityTypeGenerator.isApplicable(IntegrationObjectItemModel) should return false instead.
    • isApplicable

      protected boolean isApplicable(IntegrationObjectItemModel item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: SingleEntityTypeGenerator
      Determines whether this generator is applicable to the specified item and can generate at least a single EDMX entity type.
      Specified by:
      isApplicable in class SingleEntityTypeGenerator
      Parameters:
      item - an item, based on which the decision has to be made.
      Returns:
      true, if at least one entity type can be generated for the given item; false, otherwise.
    • generateEntityTypeName

      protected String generateEntityTypeName(IntegrationObjectItemModel item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: SingleEntityTypeGenerator
      Generates name for the entity type being generated.
      Specified by:
      generateEntityTypeName in class SingleEntityTypeGenerator
      Parameters:
      item - item, for which entity type is being generated.
      Returns:
      a valid EDMX entity type name.
    • getRegistry

      protected NavigationPropertyListGeneratorRegistry getRegistry()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setRegistry

      public void setRegistry(NavigationPropertyListGeneratorRegistry registry)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDescriptorFactory

      protected DescriptorFactory getDescriptorFactory()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setDescriptorFactory

      public void setDescriptorFactory(DescriptorFactory descriptorFactory)
      Deprecated, for removal: This API element is subject to removal in a future version.