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, 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, Object... extensions)
          Creates a new entity.
static OEntity create(EdmEntitySet entitySet, EdmEntityType entityType, OEntityKey entityKey, String entityTag, List<OProperty<?>> properties, List<OLink> links)
          Creates a new entity.
static OEntity create(EdmEntitySet entitySet, EdmEntityType entityType, OEntityKey entityKey, String entityTag, 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)
          Creates a new entity.
static OEntity create(EdmEntitySet entitySet, OEntityKey entityKey, List<OProperty<?>> properties, List<OLink> links, Object... extensions)
          Creates a new entity.
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,
                             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

create

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

create

public static OEntity create(EdmEntitySet entitySet,
                             EdmEntityType entityType,
                             OEntityKey entityKey,
                             String entityTag,
                             List<OProperty<?>> properties,
                             List<OLink> links)
Creates a new entity.

Parameters:
entitySet - the entity-set
entityType - the entity type
entityKey - the entity-key
entityTag - the entity-tag
properties - the entity properties, if any
links - the entity links, if any
Returns:
the new entity

create

public static OEntity create(EdmEntitySet entitySet,
                             EdmEntityType entityType,
                             OEntityKey entityKey,
                             String entityTag,
                             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
entityTag - the entity-tag, if applicable
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

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,
                             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

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