code: public static PrimitiveType getAndCheckPrimitiveType(EntityDataModel entityDataModel, String typeName) {
          return checkIsPrimitiveType(getAndCheckType(entityDataModel, typeName));
      }
docs: Gets the OData type with a specified name and checks if the OData type is a primitive type; throws an exception
  if the OData type is not a primitive type.
  
  @param entityDataModel The entity data model.
  @param typeName        The type name.
  @return The OData primitive type with the specified name.
  @throws ODataSystemException If there is no OData type with the specified name or if the OData type is not
  a primitive type.