org.odata4j.core
Class OEntities

java.lang.Object
  extended by org.odata4j.core.OEntities

public class OEntities
extends Object

A static factory to create immutable OEntity instances.


Method Summary
static OEntity create(EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links)
          Creates a new entity.
static OEntity create(EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links, String title, String categoryTerm)
          Creates a new entity with additional Atom information.
static OEntity createRequest(EdmEntitySet entitySet, List<OProperty<?>> properties, List<OLink> links)
          Creates a new request-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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

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

create

public static OEntity create(EdmEntitySet entitySet,
                             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
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

createRequest

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

createRequest

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


http://odata4j.org