247.6. OData Resource Type Mapping
读取 端点和数据类型的数据选项的结果取决于正在查询、创建或修改的 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) |
| 简单属性 | <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 |