246.6. OData リソースタイプのマッピング
data オプションの read エンドポイントとデータ型の結果は、クエリー、作成、または変更される OData リソースによって異なります。
| OData リソースタイプ | resourcePath と keyPredicate からのリソース URI | インまたはアウトのボディータイプ |
|---|---|---|
| エンティティーデータモデル | $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 (レスポンス) 入力ボディーの java.util.Map<String, Object> (リクエスト) |
| 単純なプロパティー | <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 |