public class

OEntities

extends Object
java.lang.Object
   ↳ org.odata4j.core.OEntities

Class Overview

A static factory to create immutable OEntity instances.

Summary

Public Methods
static OEntity create(EdmEntitySet entitySet, EdmEntityType entityType, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links)
Creates a new entity.
static OEntity create(EdmEntitySet entitySet, EdmEntityType entityType, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links, String title, String categoryTerm)
Creates a new entity with additional Atom information.
static OEntity create(EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links, Object... extensions)
Creates a new entity.
static OEntity create(EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links)
Creates a new entity.
static OEntity createRequest(EdmEntitySet entitySet, List<OProperty<?>> properties, List<OLink> links, String title, String categoryTerm)
Creates a new request-entity with additional Atom information.
static OEntity createRequest(EdmEntitySet entitySet, List<OProperty<?>> properties, List<OLink> links)
Creates a new request-entity.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static OEntity create (EdmEntitySet entitySet, EdmEntityType entityType, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links)

Creates a new entity.

Parameters
entitySet The entity-set
entityType The entity type
entityKey The entity-key
properties The entity properties, if any
links The entity links, if any
Returns
  • the new entity

public static OEntity create (EdmEntitySet entitySet, EdmEntityType entityType, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links, String title, String categoryTerm)

Creates a new entity with additional Atom information.

Parameters
entitySet The entity-set
entityType The entity type
entityKey The entity-key
properties The entity properties, if any
links The entity links, if any
title The Atom title
categoryTerm The Atom category term
Returns
  • the new entity

public static OEntity create (EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links, Object... extensions)

Creates a new entity.

Parameters
entitySet The entity-set
entityKey The entity-key
properties The entity properties, if any
links The entity links, if any
extensions Entity extensions, if any
Returns
  • the new entity

public static OEntity create (EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links)

Creates a new entity.

Parameters
entitySet The entity-set
entityKey The entity-key
properties The entity properties, if any
links The entity links, if any
Returns
  • the new entity

public static OEntity createRequest (EdmEntitySet entitySet, List<OProperty<?>> properties, List<OLink> links, String title, String categoryTerm)

Creates a new request-entity with additional Atom information.

A request-entity is a new entity that has not yet been created in an OData service, and therefore allowed to not have an entity-key.

Parameters
entitySet The entity-set
properties The entity properties, if any
links The entity links, if any
title The Atom title
categoryTerm The Atom category term
Returns
  • the new entity

public static OEntity createRequest (EdmEntitySet entitySet, List<OProperty<?>> properties, List<OLink> links)

Creates a new request-entity.

A request-entity is a new entity that has not yet been created in an OData service, and therefore allowed to not have an entity-key.

Parameters
entitySet The entity-set
properties The entity properties, if any
links The entity links, if any
Returns
  • the new entity