Class CsdlMapping
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlMapping
- All Implemented Interfaces:
EdmMapping
Content of this class does not appear within the CSDL metadata document. This class is used to perform server
internal mapping for edm primitive types to java types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the internal name for this mapped object.Class<?>
The class which is returned here will be used to during deserialization to replace the default java class for a primitive type.setInternalName
(String internalName) Sets the internal name for this mapped object.setMappedJavaClass
(Class<?> mappedJavaClass) Sets the class to be used during deserialization to transform an EDM primitive type into this java class.
-
Constructor Details
-
CsdlMapping
public CsdlMapping()
-
-
Method Details
-
setInternalName
Sets the internal name for this mapped object. This name won`t be used by the Olingo library but can be used by applications to access their database easier.- Parameters:
internalName
-- Returns:
- this for method chaining
-
setMappedJavaClass
Sets the class to be used during deserialization to transform an EDM primitive type into this java class. To see which classes work for which primitive type refer toEdmPrimitiveType
.- Parameters:
mappedJavaClass
- class to which is mapped- Returns:
- this for method chaining
-
getMappedJavaClass
Description copied from interface:EdmMapping
The class which is returned here will be used to during deserialization to replace the default java class for a primitive type.- Specified by:
getMappedJavaClass
in interfaceEdmMapping
- Returns:
- class used during deserialization
-
getInternalName
Description copied from interface:EdmMapping
Returns the internal name for this mapped object. This name won`t be used by the Olingo library but can be used by applications to access their database easier.- Specified by:
getInternalName
in interfaceEdmMapping
- Returns:
- the internal name of this mapped object
-