public class ReadFeedResult extends ReadResult
ReadFeedResult
represents an inlined navigation property which points to a feed (in the form of a list of
ODataEntry
instances).
The ReadFeedResult
contains the EntityProviderReadProperties
which were used for read,
the navigationPropertyName
and the read/de-serialized inlined entities.
If inlined navigation property is nullable
the ReadFeedResult
has the
navigationPropertyName
and a NULL
entry set.navigationProperty, readProperties
Constructor and Description |
---|
ReadFeedResult(EntityProviderReadProperties properties,
EdmNavigationProperty navigationProperty,
ODataFeed entry,
String entryMetadataId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getParentEntryId() |
ODataFeed |
getResult()
Common access method to read result.
|
boolean |
isFeed()
Return whether this entry is a
feed (multiplicity of 1..m )
or a single entry (multiplicity of 0..1 or 1..1 ). |
String |
toString() |
getNavigationProperty, getReadProperties
public ReadFeedResult(EntityProviderReadProperties properties, EdmNavigationProperty navigationProperty, ODataFeed entry, String entryMetadataId)
properties
- read properties which are used to read enclosing parent entitynavigationProperty
- emd navigation property information of found inline navigation propertyentry
- read entities as list of ODataEntry
public ODataFeed getResult()
ReadResult
getResult
in class ReadResult
ODataEntry
for the case of an single read entry
or a list of ODataEntry
in the case of an read feed.public boolean isFeed()
ReadResult
feed
(multiplicity of 1..m
)
or a single entry
(multiplicity of 0..1
or 1..1
).isFeed
in class ReadResult
true
for a feed and false
for an entrypublic String toString()
toString
in class ReadResult
public String getParentEntryId()
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.