Class ReadResult
java.lang.Object
org.apache.olingo.odata2.api.ep.callback.ReadResult
- Direct Known Subclasses:
ReadEntryResult,ReadFeedResult
A
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EdmNavigationPropertyprotected final EntityProviderReadProperties -
Constructor Summary
ConstructorsConstructorDescriptionReadResult(EntityProviderReadProperties readProperties, EdmNavigationProperty navigationProperty) Constructor. -
Method Summary
-
Field Details
-
readProperties
-
-
Constructor Details
-
Method Details
-
getReadProperties
- Returns:
- read properties which were used to read enclosing parent entity
-
getResult
Common access method to read result.- Returns:
- an
ODataEntryfor the case of an single read entry or a list ofODataEntryin the case of an read feed.
-
toString
-
isFeed
public abstract boolean isFeed()Return whether this entry is afeed(multiplicity of1..m) or a singleentry(multiplicity of0..1or1..1).- Returns:
truefor a feed andfalsefor an entry
-