Class ReadEntryResult
- java.lang.Object
-
- org.apache.olingo.odata2.api.ep.callback.ReadResult
-
- org.apache.olingo.odata2.api.ep.callback.ReadEntryResult
-
public class ReadEntryResult extends ReadResult
AReadEntryResultrepresents an inlined navigation property which points to an entry. TheReadEntryResultcontains theEntityProviderReadPropertieswhich were used for read, thenavigationPropertyNameand the read/de-serialized inlined entity. If inlined navigation property isnullabletheReadEntryResulthas thenavigationPropertyNameand aNULLentry set.
-
-
Field Summary
-
Fields inherited from class org.apache.olingo.odata2.api.ep.callback.ReadResult
navigationProperty, readProperties
-
-
Constructor Summary
Constructors Constructor Description ReadEntryResult(EntityProviderReadProperties properties, EdmNavigationProperty navigationProperty, ODataEntry entry, String entryMetadataId)Constructor.Parameters MUST NOT BE NULL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParentEntryId()ODataEntrygetResult()Common access method to read result.booleanisFeed()Return whether this entry is afeed(multiplicity of1..m) or a singleentry(multiplicity of0..1or1..1).StringtoString()-
Methods inherited from class org.apache.olingo.odata2.api.ep.callback.ReadResult
getNavigationProperty, getReadProperties
-
-
-
-
Constructor Detail
-
ReadEntryResult
public ReadEntryResult(EntityProviderReadProperties properties, EdmNavigationProperty navigationProperty, ODataEntry entry, String entryMetadataId)
Constructor.Parameters MUST NOT BE NULL.- Parameters:
properties- read properties which are used to read enclosing parent entitynavigationProperty- emd navigation property information of found inline navigation propertyentry- read entity asODataEntryentryMetadataId- MetadataId
-
-
Method Detail
-
getResult
public ODataEntry getResult()
Description copied from class:ReadResultCommon access method to read result.- Specified by:
getResultin classReadResult- Returns:
- an
ODataEntryfor the case of an single read entry or a list ofODataEntryin the case of an read feed.
-
isFeed
public boolean isFeed()
Description copied from class:ReadResultReturn whether this entry is afeed(multiplicity of1..m) or a singleentry(multiplicity of0..1or1..1).- Specified by:
isFeedin classReadResult- Returns:
truefor a feed andfalsefor an entry
-
toString
public String toString()
- Overrides:
toStringin classReadResult
-
getParentEntryId
public String getParentEntryId()
- Returns:
- the rootEntryId
-
-