public interface

OEntity

implements OEntityId OExtensible<T> OStructuralObject
org.odata4j.core.OEntity

Class Overview

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

Summary

Public Methods
abstract EdmEntitySet getEntitySet()
Get the entity-set of this instance.
abstract EdmEntityType getEntityType()
Get the entity type of this instance.
abstract <T extends OLink> T getLink(String title, Class<T> linkClass)
Get a link with a given name and link-type.
abstract List<OLink> getLinks()
Get all links of this instance.
[Expand]
Inherited Methods
From interface org.odata4j.core.OEntityId
From interface org.odata4j.core.OExtensible
From interface org.odata4j.core.OObject
From interface org.odata4j.core.OStructuralObject

Public Methods

public abstract EdmEntitySet getEntitySet ()

Get the entity-set of this instance.

Returns
  • the entity-set

public abstract EdmEntityType getEntityType ()

Get 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

public abstract T getLink (String title, Class<T> linkClass)

Get a link with a given name and link-type.

Parameters
title The link title
linkClass The link-type as a java-type
Returns
  • the link strongly-typed as the java-type

public abstract List<OLink> getLinks ()

Get all links of this instance.

Returns
  • the links