Class ReadResult
- java.lang.Object
-
- org.apache.olingo.odata2.api.ep.callback.ReadResult
-
- Direct Known Subclasses:
ReadEntryResult,ReadFeedResult
public abstract class ReadResult extends Object
AReadResultrepresents an inlined navigation property which points to an entry or feed. TheReadResultcontains theEntityProviderReadPropertieswhich were used for read, thenavigationPropertyName, the read/de-serialized inlined entity and information whether the inlined content is afeed(multiplicity of1..m) or a singleentry(multiplicity of0..1or1..1). If inlined navigation property isnullabletheReadResulthas thenavigationPropertyNameand aNULLentry set.
-
-
Field Summary
Fields Modifier and Type Field Description protected EdmNavigationPropertynavigationPropertyprotected EntityProviderReadPropertiesreadProperties
-
Constructor Summary
Constructors Constructor Description ReadResult(EntityProviderReadProperties readProperties, EdmNavigationProperty navigationProperty)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description EdmNavigationPropertygetNavigationProperty()EntityProviderReadPropertiesgetReadProperties()abstract ObjectgetResult()Common access method to read result.abstract booleanisFeed()Return whether this entry is afeed(multiplicity of1..m) or a singleentry(multiplicity of0..1or1..1).StringtoString()
-
-
-
Field Detail
-
readProperties
protected final EntityProviderReadProperties readProperties
-
navigationProperty
protected final EdmNavigationProperty navigationProperty
-
-
Constructor Detail
-
ReadResult
public ReadResult(EntityProviderReadProperties readProperties, EdmNavigationProperty navigationProperty)
Constructor. Parameters MUST NOT BE NULL.- Parameters:
readProperties- read properties which are used to read enclosing parent entitynavigationProperty- emd navigation property information of found inline navigation property
-
-
Method Detail
-
getReadProperties
public EntityProviderReadProperties getReadProperties()
- Returns:
- read properties which were used to read enclosing parent entity
-
getNavigationProperty
public EdmNavigationProperty getNavigationProperty()
- Returns:
- emd navigation property information of found inline navigation property
-
getResult
public abstract Object 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.
-
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
-
-