org.apache.olingo.odata2.api.ep.callback
Class ReadEntryResult

java.lang.Object
  extended by org.apache.olingo.odata2.api.ep.callback.ReadResult
      extended by org.apache.olingo.odata2.api.ep.callback.ReadEntryResult

public class ReadEntryResult
extends ReadResult

A ReadEntryResult represents an inlined navigation property which points to an entry. The ReadEntryResult contains the EntityProviderReadProperties which were used for read, the navigationPropertyName and the read/de-serialized inlined entity. If inlined navigation property is nullable the ReadEntryResult has the navigationPropertyName and a NULL entry set.


Field Summary
 
Fields inherited from class org.apache.olingo.odata2.api.ep.callback.ReadResult
navigationProperty, readProperties
 
Constructor Summary
ReadEntryResult(EntityProviderReadProperties properties, EdmNavigationProperty navigationProperty, ODataEntry entry)
          Constructor.
 
Method Summary
 ODataEntry 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()
           
 
Methods inherited from class org.apache.olingo.odata2.api.ep.callback.ReadResult
getNavigationProperty, getReadProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReadEntryResult

public ReadEntryResult(EntityProviderReadProperties properties,
                       EdmNavigationProperty navigationProperty,
                       ODataEntry entry)
Constructor. Parameters MUST NOT BE NULL.

Parameters:
properties - read properties which are used to read enclosing parent entity
navigationProperty - emd navigation property information of found inline navigation property
entry - read entity as ODataEntry
Method Detail

getResult

public ODataEntry getResult()
Description copied from class: ReadResult
Common access method to read result.

Specified by:
getResult in class ReadResult
Returns:
an ODataEntry for the case of an single read entry or a list of ODataEntry in the case of an read feed.

isFeed

public boolean isFeed()
Description copied from class: ReadResult
Return whether this entry is a feed (multiplicity of 1..m) or a single entry (multiplicity of 0..1 or 1..1).

Specified by:
isFeed in class ReadResult
Returns:
true for a feed and false for an entry

toString

public String toString()
Overrides:
toString in class ReadResult


Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.