public class

EdmEntityType

extends EdmStructuralType
java.lang.Object
   ↳ org.odata4j.edm.EdmItem
     ↳ org.odata4j.edm.EdmType
       ↳ org.odata4j.edm.EdmNonSimpleType
         ↳ org.odata4j.edm.EdmStructuralType
           ↳ org.odata4j.edm.EdmEntityType

Class Overview

A CSDL EntityType element.

The EntityType element represents the structure of a top-level concept, such as a customer or order, in a conceptual model. An entity type is a template for instances of entity types in an application. Each template contains the following information:

  • A unique name. (Required.)
  • An entity key that is defined by one or more properties. (Required.)
  • Properties for containing data. (Optional.)
  • Navigation properties that allow for navigation from one end of an association to the other end. (Optional.)

    In an application, an instance of an entity type represents a specific object (such as a specific customer or order). Each instance of an entity type must have a unique entity key within an entity set.

    Two entity type instances are considered equal only if they are of the same type and the values of their entity keys are the same.

  • Summary

    Nested Classes
    class EdmEntityType.Builder Mutable builder for EdmEntityType objects. 
    Fields
    private final String alias
    private final Boolean hasStream
    private final List<String> keys
    private final List<EdmNavigationProperty> navigationProperties
    [Expand]
    Inherited Fields
    From class org.odata4j.edm.EdmStructuralType
    From class org.odata4j.edm.EdmType
    From class org.odata4j.edm.EdmItem
    Public Methods
    EdmNavigationProperty findDeclaredNavigationProperty(String name)
    Finds a navigation property by name on this entity type not including inherited properties.
    EdmNavigationProperty findNavigationProperty(String name)
    Finds a navigation property by name, searching up the type hierarchy if necessary.
    String getAlias()
    Enumerable<EdmNavigationProperty> getDeclaredNavigationProperties()
    Gets the navigation properties defined for this entity type not including inherited properties.
    String getFQAliasName()
    Boolean getHasStream()
    List<String> getKeys()
    Gets the keys for this EdmEntityType.
    Enumerable<EdmNavigationProperty> getNavigationProperties()
    Gets the navigation properties defined for this entity type including inherited properties.
    static EdmEntityType.Builder newBuilder()
    static EdmEntityType.Builder newBuilder(EdmEntityType entityType, EdmItem.BuilderContext context)
    String toString()
    [Expand]
    Inherited Methods
    From class org.odata4j.edm.EdmStructuralType
    From class org.odata4j.edm.EdmNonSimpleType
    From class org.odata4j.edm.EdmType
    From class org.odata4j.edm.EdmItem
    From class java.lang.Object
    From interface org.odata4j.core.Named

    Fields

    private final String alias

    private final Boolean hasStream

    private final List<String> keys

    private final List<EdmNavigationProperty> navigationProperties

    Public Methods

    public EdmNavigationProperty findDeclaredNavigationProperty (String name)

    Finds a navigation property by name on this entity type not including inherited properties.

    Parameters
    name

    public EdmNavigationProperty findNavigationProperty (String name)

    Finds a navigation property by name, searching up the type hierarchy if necessary.

    Parameters
    name

    public String getAlias ()

    public Enumerable<EdmNavigationProperty> getDeclaredNavigationProperties ()

    Gets the navigation properties defined for this entity type not including inherited properties.

    public String getFQAliasName ()

    public Boolean getHasStream ()

    public List<String> getKeys ()

    Gets the keys for this EdmEntityType. Keys are defined only in a root types.

    public Enumerable<EdmNavigationProperty> getNavigationProperties ()

    Gets the navigation properties defined for this entity type including inherited properties.

    public static EdmEntityType.Builder newBuilder ()

    public static EdmEntityType.Builder newBuilder (EdmEntityType entityType, EdmItem.BuilderContext context)

    Parameters
    entityType
    context

    public String toString ()