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 Summary
Modifier and TypeMethodDescriptionbuildComplexTypeName(javax.persistence.metamodel.EmbeddableType<?> jpaEnbeddedType)Container names are Simple Identifier, so can contain only letters, digits and underscores.buildEntitySetName(String entityTypeName)Create a name of an Entity Set derived from the name of the corresponding entity type.default StringbuildEntitySetName(org.apache.olingo.commons.api.edm.provider.CsdlEntityType entityType)buildEntityTypeName(javax.persistence.metamodel.EntityType<?> jpaEntityType)Creates the name of an Entity Type derived from JPA Entity Type.buildEnumerationTypeName(Class<? extends Enum<?>> javaEnum)Converts the internal java class name of an enumeration into the external entity data model Enumeration Type name.buildNaviPropertyName(javax.persistence.metamodel.Attribute<?,?> jpaAttribute)Converts the name of an JPA association attribute into the name of an EDM navigation propertybuildOperationName(String internalOperationName)Convert the internal name of a java based operation into the external entity data model name.buildPropertyName(String jpaAttributeName)Converts the name of an JPA attribute into the name of an EDM property
-
Method Details
-
buildComplexTypeName
@Nonnull String buildComplexTypeName(javax.persistence.metamodel.EmbeddableType<?> jpaEnbeddedType)- Parameters:
jpaEnbeddedType-- Returns:
-
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
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
Creates the name of an Entity Type derived from JPA Entity Type.- Parameters:
jpaEntityType-- Returns:
- non empty unique name of an Entity Type
-
buildEnumerationTypeName
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
-
buildOperationName
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
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
- Returns:
- name space to a schema
-