Interface JPAEdmNameBuilder

All Known Implementing Classes:
JPADefaultEdmNameBuilder

public interface JPAEdmNameBuilder
A name builder creates, based on information from the JPA entity model names, the names of the corresponding element of the OData entity data model (EDM)
Author:
Oliver Grande Created: 15.09.2019
  • Method Details

    • buildComplexTypeName

      @Nonnull String buildComplexTypeName(javax.persistence.metamodel.EmbeddableType<?> jpaEnbeddedType)
      Parameters:
      jpaEnbeddedType -
      Returns:
    • buildContainerName

      @Nonnull String buildContainerName()
      Container names are Simple Identifier, so can contain only letters, digits and underscores.
      Returns:
      non empty unique name of an Entity Set
    • buildEntitySetName

      default String buildEntitySetName(org.apache.olingo.commons.api.edm.provider.CsdlEntityType entityType)
    • buildEntitySetName

      @Nonnull String buildEntitySetName(String entityTypeName)
      Create a name of an Entity Set derived from the name of the corresponding entity type.
      Parameters:
      entityTypeName -
      Returns:
      non empty unique name of an Entity Set
    • buildEntityTypeName

      @Nonnull String buildEntityTypeName(javax.persistence.metamodel.EntityType<?> jpaEntityType)
      Creates the name of an Entity Type derived from JPA Entity Type.
      Parameters:
      jpaEntityType -
      Returns:
      non empty unique name of an Entity Type
    • buildEnumerationTypeName

      @Nonnull String buildEnumerationTypeName(Class<? extends Enum<?>> javaEnum)
      Converts the internal java class name of an enumeration into the external entity data model Enumeration Type name.
      Parameters:
      javaEnum -
      Returns:
      non empty unique name of an Enumeration
    • buildNaviPropertyName

      @Nonnull String buildNaviPropertyName(javax.persistence.metamodel.Attribute<?,​?> jpaAttribute)
      Converts the name of an JPA association attribute into the name of an EDM navigation property
      Parameters:
      jpaAttribute -
      Returns:
      non empty unique name of a Navigation Property
    • buildOperationName

      @Nonnull String buildOperationName(String internalOperationName)
      Convert the internal name of a java based operation into the external entity data model name.
      Parameters:
      internalOperationName -
      Returns:
      non empty unique name of an Operation (Function or Action)
    • buildPropertyName

      @Nonnull String buildPropertyName(String jpaAttributeName)
      Converts the name of an JPA attribute into the name of an EDM property
      Parameters:
      jpaAttributeName -
      Returns:
      non empty unique name of a property
    • getNamespace

      @Nonnull String getNamespace()
      Returns:
      name space to a schema