Class StructTypeHelper
java.lang.Object
com.sap.cds.adapter.odata.v4.serializer.json.StructTypeHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePrimitive
(PropertyInfo propertyInfo) createPrimitive
(PropertyInfo propertyInfo, CdsODataOptions options) createPrimitive
(PropertyInfo propertyInfo, String label, CdsODataOptions options) static String2Json<Map<String,
Object>> createPropertyMetaTypeSerializer
(PropertyInfo propertyInfo, CdsODataOptions options) createPropertySerializer
(PropertyInfo propertyInfo, CdsODataOptions options) static PropertyInfo
getPropertyInfo
(CdsODataRequest cdsRequest) HELPERgetReducedSelectedPaths
(Set<List<String>> selectedPaths, String propertyName) getSelectedPaths
(SelectOption selectOption) SELECTgetSelectedPaths
(SelectOption selectOption, String propertyName) static boolean
isPropertySelected
(Set<List<String>> selectedPaths, String propertyName) static EdmStructuredType
resolveEntityType
(ServiceMetadata metadata, EdmStructuredType baseType, String derivedTypeName) Resolve the given derivedTypeName to the corresponding EdmStructuredType from the model, ensuring baseType is its valid base type.
-
Constructor Details
-
StructTypeHelper
public StructTypeHelper()
-
-
Method Details
-
getSelectedPaths
SELECT -
isPropertySelected
-
getReducedSelectedPaths
-
getSelectedPaths
-
getPropertyInfo
HELPER -
createPropertyMetaTypeSerializer
public static String2Json<Map<String,Object>> createPropertyMetaTypeSerializer(PropertyInfo propertyInfo, CdsODataOptions options) -
resolveEntityType
public static EdmStructuredType resolveEntityType(ServiceMetadata metadata, EdmStructuredType baseType, String derivedTypeName) Resolve the given derivedTypeName to the corresponding EdmStructuredType from the model, ensuring baseType is its valid base type. -
createPropertySerializer
public static Data2Json<Map<String,Object>> createPropertySerializer(PropertyInfo propertyInfo, CdsODataOptions options) -
createPrimitive
public static Data2Json<Map<String,Object>> createPrimitive(PropertyInfo propertyInfo, CdsODataOptions options) -
createPrimitive
-
createPrimitive
public static Data2Json<Map<String,Object>> createPrimitive(PropertyInfo propertyInfo, String label, CdsODataOptions options)
-