| java.lang.Object | |
| ↳ | org.mule.modules.odata.ODataConnector |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Connector for consuming OData feeds by performing read, create, update and delete operations. Bath operations are also supported. This version of the connector does not use any kind of authentication.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | BATCH_PARTS | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| baseServiceUri | The url of the target OData service | ||||||||||
| consumer | The consumer to use | ||||||||||
| consumerFactory | An instance of ODataConsumerFactory
to intanciate the ODataConsumer. |
||||||||||
| consumerVersion | The protocol version to be used when consuming external services | ||||||||||
| formatType | The format of the payload to be used during communication. | ||||||||||
| logger | |||||||||||
| namingFormat | The namig policy to be used when mapping pojo's attributes to OData entities. | ||||||||||
| propertiesCache | |||||||||||
| user | The current usert | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Executes a series of insert/update/deletes in a batch grouped in one changeset.
| |||||||||||
Inserts an entity from an input pojo.
| |||||||||||
Reads entities from an specified set and returns it as a list of pojos.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
The url of the target OData service
An instance of ODataConsumerFactory
to intanciate the ODataConsumer. Normally you don't
need to set this unless you require some custom initialization of the consumer
or if you are doing test cases.
If this property is not specified, then an instance of
org.mule.modules.odata.factory.ODataConsumerFactoryImpl.ODataConsumerFactoryImpl is used
The protocol version to be used when consuming external services
The format of the payload to be used during communication. Valid values are JSON and ATOM
The namig policy to be used when mapping pojo's attributes to OData entities. Depending on the OData service you're consuming, you might find that attributes usually follows a lower camel case format (e.g.: theAttribute) or an upper camel case format (e.g.: TheAttribute). The naming format assumes that your pojo's properties follow the lower camel case format (just as the java coding standard dictates) and translates to the format that the OData service is expecting. Valid values are: LOWER_CAMEL_CASE and UPPER_CAMEL_CASE.
The current usert
Executes a series of insert/update/deletes in a batch grouped in one changeset.
| message | The current mule message |
|---|---|
| processors | Nested processors where each individual operation is to be performed |
BatchResult
| username | The authorization username |
|---|---|
| password | The authorization password |
| serviceUri | The URI of the target OData Service |
| ConnectionException |
|---|
Inserts an entity from an input pojo.
To specify the entitie's id, your pojo can rather have an attribute of type
Guid or to have a string attribute annotated with Guid
| message | The current mule message |
|---|---|
| entity | An object representing the entity |
| entitySetName | The name of the set. If not specified then it's inferred by adding the suffix 'Set' to the objects simple class name |
Deletes an entity represented by a pojo on the OData service
To specify the entitie's id, your pojo can rather have an attribute of type
Guid or to have a string attribute annotated with Guid
| message | The current mule message |
|---|---|
| entity | An object representing the entity |
| entitySetName | The name of the set. If not specified then it's inferred by adding the suffix 'Set' to the objects simple class name |
| keyAttribute | The name of the pojo's attribute that holds the entity's key. The attribute cannot hold a null value |
Reads entities from an specified set and returns it as a list of pojos. You can optionally provide a returnClass parameter which will allow you to get the result as a list of pojos (as long as that class is compliant with the Bean contract). If you don't specify it, you'll get a list of generic ${org.odata4j.core.OEntity} objects.
| returnClass | The canonical class name for the pojo instances to be returned. If none especified then generic OEntity class will be returned. OEntity is a pojo which represents the set's metadata and allows for browsing |
|---|---|
| entitySetName | The name of the set to be read |
| filter | An OData filtering expression. If not provided, no filtering occurs (see http://www.odata.org/developers/protocols/uri-conventions#FilterSystemQueryOption) |
| orderBy | The ordering expression. If not provided, no ordering occurs (see http://www.odata.org/developers/protocols/uri-conventions#OrderBySystemQueryOption( |
| expand | Sets the expand expressions. |
| skip | Number of items to skip, usefull for pagination. If not provided, no records are skept (see http://www.odata.org/developers/protocols/uri-conventions#SkipSystemQueryOption) |
| top | Number of items to return (see http://www.odata.org/developers/protocols/uri-conventions#TopSystemQueryOption) |
| select | The selection clauses. If not specified, all fields are returned (see http://www.odata.org/developers/protocols/uri-conventions#SelectSystemQueryOption) |
Updates an entity represented by a pojo on the OData service
To specify the entitie's id, your pojo can rather have an attribute of type
Guid or to have a string attribute annotated with Guid
| message | The current mule message |
|---|---|
| entity | An object representing the entity |
| entitySetName | The name of the set. If not specified then it's inferred by adding the suffix 'Set' to the objects simple class name |
| keyAttribute | The name of the pojo's attribute that holds the entity's key. The attribute cannot hold a null value |