org.odata4j.core
Interface OEntity

All Superinterfaces:
OEntityId, OExtensible<OEntity>, OObject, OStructuralObject

public interface OEntity
extends OEntityId, OStructuralObject, OExtensible<OEntity>

An immutable OData entity instance, consisting of an identity (an entity-set and a unique entity-key within that set), properties (typed, named values), and links (references to other entities).

The OEntities static factory class can be used to create OEntity instances.

See Also:
OEntities

Method Summary
 EdmEntitySet getEntitySet()
          Gets the entity-set of this instance.
 String getEntityTag()
          An optional opaque token used for concurrency control.
 EdmEntityType getEntityType()
          Gets the entity type of this instance.
<T extends OLink>
T
getLink(String title, Class<T> linkClass)
          Gets a link with a given name and link-type.
 List<OLink> getLinks()
          Gets all links of this instance.
 
Methods inherited from interface org.odata4j.core.OEntityId
getEntityKey, getEntitySetName
 
Methods inherited from interface org.odata4j.core.OStructuralObject
getProperties, getProperty, getProperty
 
Methods inherited from interface org.odata4j.core.OObject
getType
 
Methods inherited from interface org.odata4j.core.OExtensible
findExtension
 

Method Detail

getEntitySet

EdmEntitySet getEntitySet()
Gets the entity-set of this instance.

Returns:
the entity-set

getEntityTag

String getEntityTag()
An optional opaque token used for concurrency control.

Returns:
the entity-tag

getEntityType

EdmEntityType getEntityType()
Gets the entity type of this instance. This will either be the declared entity type of the entity set associated with this instance *or* a sub-type of that entity type.

Returns:
the entity-type

getLink

<T extends OLink> T getLink(String title,
                            Class<T> linkClass)
Gets a link with a given name and link-type.

Type Parameters:
T - the link-type as a java-type
Parameters:
title - the link title
linkClass - the link-type as a java-type
Returns:
the link strongly-typed as the java-type

getLinks

List<OLink> getLinks()
Gets all links of this instance.

Returns:
the links


http://odata4j.org