public abstract class ReadResult extends Object
ReadResult
represents an inlined navigation property which points to an entry or feed.
The ReadResult
contains the EntityProviderReadProperties
which were used for read,
the navigationPropertyName
, the read/de-serialized inlined entity and information whether the inlined
content
is a feed
(multiplicity of 1..m
) or a single entry
(multiplicity of
0..1
or 1..1
).
If inlined navigation property is nullable
the ReadResult
has the
navigationPropertyName
and a NULL
entry set.Modifier and Type | Field and Description |
---|---|
protected EdmNavigationProperty |
navigationProperty |
protected EntityProviderReadProperties |
readProperties |
Constructor and Description |
---|
ReadResult(EntityProviderReadProperties readProperties,
EdmNavigationProperty navigationProperty)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
EdmNavigationProperty |
getNavigationProperty() |
EntityProviderReadProperties |
getReadProperties() |
abstract Object |
getResult()
Common access method to read result.
|
abstract 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() |
protected final EntityProviderReadProperties readProperties
protected final EdmNavigationProperty navigationProperty
public ReadResult(EntityProviderReadProperties readProperties, EdmNavigationProperty navigationProperty)
readProperties
- read properties which are used to read enclosing parent entitynavigationProperty
- emd navigation property information of found inline navigation propertypublic EntityProviderReadProperties getReadProperties()
public EdmNavigationProperty getNavigationProperty()
public abstract Object getResult()
ODataEntry
for the case of an single read entry
or a list of ODataEntry
in the case of an read feed.public abstract boolean isFeed()
feed
(multiplicity of 1..m
)
or a single entry
(multiplicity of 0..1
or 1..1
).true
for a feed and false
for an entryCopyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.