| java.lang.Object | |
| ↳ | org.odata4j.producer.inmemory.InMemoryProducer |
An in-memory implementation of an ODATA Producer. Uses the standard Java bean and property model to access information within entities.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | DEFAULT_MAX_RESULTS | ||||||||||
| String | ID_PROPNAME | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| containerName | |||||||||||
| decorator | |||||||||||
| eis | |||||||||||
| maxResults | |||||||||||
| metadata | |||||||||||
| metadataProducer | |||||||||||
| namespace | |||||||||||
| typeMapping | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of an in-memory POJO producer.
| |||||||||||
Creates a new instance of an in-memory POJO producer.
| |||||||||||
Creates a new instance of an in-memory POJO producer.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Call a function (aka Service Operation)
| |||||||||||
Releases any resources managed by this producer.
| |||||||||||
Creates a new OData entity.
| |||||||||||
Creates a new OData entity as a reference of an existing entity, implicitly linked to the existing entity by a navigation property.
| |||||||||||
Creates a link between two entities.
| |||||||||||
Deletes an existing entity.
| |||||||||||
Deletes an existing link between two entities.
| |||||||||||
Gets all the entities for a given set matching the query information.
| |||||||||||
Gets the count of all the entities for a given set matching the query information.
| |||||||||||
Obtains a single entity based on its type and key.
| |||||||||||
Returns the value of an entity's navigation property as a collection of entity links (or a single link if the association cardinality is 1).
| |||||||||||
Obtains the service metadata for this producer.
| |||||||||||
Obtains the ODataProducer implementation that serves the metadata as
OData EDM constructs.
| |||||||||||
Given a specific entity, follow one of its navigation properties, applying constraints as appropriate.
| |||||||||||
Given a specific entity, follow one of its navigation properties, applying constraints as appropriate.
| |||||||||||
Modifies an existing entity using merge semantics.
| |||||||||||
Registers a new entity based on a POJO, with support for composite keys.
| |||||||||||
Registers a new entity based on a POJO, with support for composite keys.
| |||||||||||
Registers a new entity set based on a POJO type using the default property model.
| |||||||||||
Registers a new entity set based on a POJO type and a property model.
| |||||||||||
Modifies an existing entity using update semantics.
| |||||||||||
Replaces an existing link between two entities.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.odata4j.producer.ODataProducer
| |||||||||||
Creates a new instance of an in-memory POJO producer.
| namespace | The namespace of the schema registrations |
|---|
Creates a new instance of an in-memory POJO producer.
| namespace | The namespace of the schema registrations |
|---|---|
| maxResults | The maximum number of entities to return in a single call |
Creates a new instance of an in-memory POJO producer.
| namespace | The namespace of the schema registrations |
|---|---|
| containerName | The container name for generated metadata |
| maxResults | The maximum number of entities to return in a single call |
| decorator | A decorator to use for edm customizations |
| typeMapping | Optional mapping between java types and edm types, null for default |
Call a function (aka Service Operation)
| name | The name of the function |
|---|---|
| params | The parameters to the function |
| queryInfo | Additional query parameters to apply to collection-valued results |
The return type of <Function> MUST be one of the following:
An EDMSimpleType or collection of EDMSimpleTypes.
An entity type or collection of entity types.
A complex type or collection of complex types.
A row type or collection of row types.
<ReturnType> can contain a maximum of one <CollectionType> element.
<ReturnType> can contain a maximum of one <ReferenceType> element.
<ReturnType> can contain a maximum of one <RowType> element.
A ref type or collection of ref types.
Releases any resources managed by this producer.
Creates a new OData entity.
| entitySetName | The entity-set name |
|---|---|
| entity | The request entity sent from the client |
Creates a new OData entity as a reference of an existing entity, implicitly linked to the existing entity by a navigation property.
| entitySetName | The entity-set name of the existing entity |
|---|---|
| entityKey | The entity-key of the existing entity |
| navProp | The navigation property off of the existing entity |
| entity | The request entity sent from the client |
Creates a link between two entities.
| sourceEntity | An entity with at least one navigation property |
|---|---|
| targetNavProp | The navigation property |
| targetEntity | The link target entity |
Deletes an existing entity.
| entitySetName | The entity-set name of the entity |
|---|---|
| entityKey | The entity-key of the entity |
Deletes an existing link between two entities.
| sourceEntity | An entity with at least one navigation property |
|---|---|
| targetNavProp | The navigation property |
| targetEntityKey | If the navigation property represents a set, the key identifying the target entity within the set, else n/a |
Gets all the entities for a given set matching the query information.
| entitySetName | The entity-set name for entities to return |
|---|---|
| queryInfo | The additional constraints to apply to the entities |
Gets the count of all the entities for a given set matching the query information.
| entitySetName | The entity-set name for entities whose count is returned |
|---|---|
| queryInfo | The additional constraints to apply to the entities |
Obtains a single entity based on its type and key.
| entitySetName | The entity-set name for entities to return |
|---|---|
| entityKey | The unique entity-key of the entity to start with |
| queryInfo | The additional constraints applicable to single-entity queries |
Returns the value of an entity's navigation property as a collection of entity links (or a single link if the association cardinality is 1).
| sourceEntity | An entity with at least one navigation property |
|---|---|
| targetNavProp | The navigation property |
Obtains the service metadata for this producer.
Obtains the ODataProducer implementation that serves the metadata as OData EDM constructs.
Given a specific entity, follow one of its navigation properties, applying constraints as appropriate. Return the resulting entity, entities, or property value.
| entitySetName | The entity-set of the entity to start with |
|---|---|
| entityKey | The unique entity-key of the entity to start with |
| navProp | The navigation property to follow |
| queryInfo | Additional constraints to apply to the result |
Given a specific entity, follow one of its navigation properties, applying constraints as appropriate. Return the count of the resulting entities.
| entitySetName | The entity-set of the entity to start with |
|---|---|
| entityKey | The unique entity-key of the entity to start with |
| navProp | The navigation property to follow |
| queryInfo | Additional constraints to apply to the result |
Modifies an existing entity using merge semantics.
| entitySetName | The entity-set name |
|---|---|
| entity | The entity modifications sent from the client |
Registers a new entity based on a POJO, with support for composite keys.
| entityClass | The class of the entities that are to be stored in the set |
|---|---|
| entitySetName | The alias the set will be known by; this is what is used in the OData url |
| entityTypeName | Type name of the entity |
| get | A function to iterate over the elements in the set |
| keys | One or more keys for the entity |
| entityClass | |
|---|---|
| propertyModel | |
| entitySetName | |
| entityTypeName | |
| get | |
| keys |
Registers a new entity based on a POJO, with support for composite keys.
| entityClass | The class of the entities that are to be stored in the set |
|---|---|
| entitySetName | The alias the set will be known by; this is what is used in the OData url |
| get | A function to iterate over the elements in the set |
| keys | One or more keys for the entity |
Registers a new entity set based on a POJO type using the default property model.
| entityClass | |
|---|---|
| keyClass | |
| entitySetName | |
| get | |
| id |
Registers a new entity set based on a POJO type and a property model.
| entityClass | The class of the entities that are to be stored in the set |
|---|---|
| propertyModel | A way to get/set properties on the POJO |
| entitySetName | The alias the set will be known by; this is what is used in the ODATA URL |
| get | A function to iterate over the elements in the set |
| keys | One or more keys for the entity |
Modifies an existing entity using update semantics.
| entitySetName | The entity-set name |
|---|---|
| entity | The entity modifications sent from the client |
Replaces an existing link between two entities.
| sourceEntity | An entity with at least one navigation property |
|---|---|
| targetNavProp | The navigation property |
| oldTargetEntityKey | If the navigation property represents a set, the key identifying the old target entity within the set, else n/a |
| newTargetEntity | The new link target entity |
| namespace | |
|---|---|
| typeMapping | |
| idPropName | |
| eis |
| ees | |
|---|---|
| obj | |
| expand |