org.odata4j.edm
Class EdmEntitySet

java.lang.Object
  extended by org.odata4j.edm.EdmItem
      extended by org.odata4j.edm.EdmEntitySet
All Implemented Interfaces:
Named

public class EdmEntitySet
extends EdmItem
implements Named

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.

See Also:
[msdn] EntitySet Element (CSDL)

Nested Class Summary
static class EdmEntitySet.Builder
          Mutable builder for EdmEntitySet objects.
 
Method Summary
 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()
           
 
Methods inherited from class org.odata4j.edm.EdmItem
findAnnotation, getAnnotations, getDocumentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public String getName()
The name of the entity set.

Specified by:
getName in interface Named
Returns:
the name

getType

public EdmEntityType getType()
The entity type for which the entity set contains instances.


newBuilder

public static EdmEntitySet.Builder newBuilder()

toString

public String toString()
Overrides:
toString in class Object


http://odata4j.org