public class

EdmEntitySet

extends EdmItem
implements Named
java.lang.Object
   ↳ org.odata4j.edm.EdmItem
     ↳ org.odata4j.edm.EdmEntitySet

Class Overview

A CSDL EntitySet element.

The EntitySet element in conceptual schema definition language is a logical container for instances of an entity type and instances of any type that is derived from that entity type. The relationship between an entity type and an entity set is analogous to the relationship between a row and a table in a relational database. Like a row, an entity type defines a set of related data, and, like a table, an entity set contains instances of that definition. An entity set provides a construct for grouping entity type instances so that they can be mapped to related data structures in a data source.

More than one entity set for a particular entity type may be defined.

Summary

Nested Classes
class EdmEntitySet.Builder Mutable builder for EdmEntitySet objects. 
Fields
private final String name
private final Func<EdmEntityType> type
[Expand]
Inherited Fields
From class org.odata4j.edm.EdmItem
Public Methods
String getName()
The name of the entity set.
EdmEntityType getType()
The entity type for which the entity set contains instances.
static EdmEntitySet.Builder newBuilder()
String toString()
[Expand]
Inherited Methods
From class org.odata4j.edm.EdmItem
From class java.lang.Object
From interface org.odata4j.core.Named

Fields

private final String name

private final Func<EdmEntityType> type

Public Methods

public String getName ()

The name of the entity set.

Returns
  • the name

public EdmEntityType getType ()

The entity type for which the entity set contains instances.

public static EdmEntitySet.Builder newBuilder ()

public String toString ()