247.6. OData 资源类型映射
读取端点和 数据类型 的结果取决于正在查询、创建或修改的 OData 资源。
| OData 资源类型 | 来自 resourcePath 和 keyPredicate 的资源 URI | in 或 Out Body Type | 
|---|---|---|
| 实体数据模型 | $metadata | org.apache.olingo.commons.api.edm.Edm | 
| 服务文档 | / | org.apache.olingo.client.api.domain.ClientServiceDocument | 
| OData 实体集 | <entity-set> | org.apache.olingo.client.api.domain.ClientEntitySet | 
| OData 实体 | <entity-set>(<key-predicate>) | org.apache.olingo.client.api.domain.ClientEntity for Out body (response) java.util.Map<String, Object> for In body (request) | 
| simple 属性 | <entity-set>(<key-predicate>)/<simple-property> | org.apache.olingo.client.api.domain.ClientPrimitiveValue | 
| 简单属性值 | <entity-set>(<key-predicate>)/<simple-property>/$value | org.apache.olingo.client.api.domain.ClientPrimitiveValue | 
| 复杂属性 | <entity-set>(<key-predicate>)/<complex-property> | org.apache.olingo.client.api.domain.ClientComplexValue | 
| 数量 | <resource-uri>/$count | java.lang.Long |