Microsoft Azure Table Storage Connector
This adapter enables the connection to a Microsoft Azure Table Storage to perform various operations.
Properties
Operation | Defines the operation executed by the adapter Possible values:
|
Parameters
Adapter | Adapter main class (do not change!) Possible values: de.softproject.integration.adapter.microsoft.azure.table.MicrosoftAzureTableStorageAdapter: main class (default) |
accountName | Name of the Microsoft Azure storage account Possible values: Any valid string, e.g. |
accountKey | Password of the Microsoft Azure storage account Possible values: Any string containing the serial key provide by Microsoft Azure, e. g. |
endPoint | Azure Cosmos DB endpoint |
tableName | Name of the table where entities are stored Possible values: String containing the ID for the new table |
partitionKey | Element of the primary key Entities with the same partition key can be queried faster, and inserted/updated in atomic operations. Possible values: Any string containing the partition key |
rowKey | Element of the primary key An entity's row key is its unique identifier within a partition Possible values: Any string containing the row key |
filterCondition | Use to compare Possible values:
|
replaceExistingItems | Indicates if Possible values:
|
Status values
1 | The operation was executed successfully |
-1 | An error occurred during the operation's execution |
0 | Operation Operation |
Input
The adapter expects an XML document as input
In case of
InsertEntity
operation, an XML with the following structure is expected:Expected structure for operation InsertEntity
XML<?xml version="1.0" encoding="UTF-8" <Entity> <Properties1 name="Department" value="ITAdministration"/> <Properties2 name="Address" value="C\Pirandello"/> <Properties3 name="Name" value="Paolo"/> <Properties4 name="Surname" value="Green"/> </Entity>
The property (key)
name
cannot be protected words likeId
.In case of
ModifyEntity
operation, an XML with the following structure is expected:Expected structure for operation ModifyEntity
XML<?xml version="1.0" encoding="UTF-8" ?> <Entity> <Properties name="Name" value="Carlos" /> </Entity>
In case of
QueryOfSubsetEntityProperties
operation, an XML where the required properties are specified is expected:Expected structure for operation QueryOfSubsetEntityProperties
XML<?xml version="1.0" encoding="UTF-8" ?> <Entity> <Property name="Department" /> <Property name="Surname" /> <Property name="nonExistingProperty" /> </Entity>
Output
The adapter returns different kind of documents depending on the executed operation:
Output for operation
RetrieveEntity
:Output for operation RetrieveEntity
XML<?xml version="1.0" encoding="UTF-8" <Entity partitionKey="ITEmployee" rowKey="ref-0001"> <Properties name="Department" value="ITAdministration"/> <Properties name="Address" value="C\Pirandello"/> <Properties name="Name" value="Paolo"/> <Properties name="Surname" value="Green"/> </Entity>
Output for operations
RetrieveAllEntities
andRetrieveRangeEntities
:Output for operations RetrieveAllEntities and RetrieveRangeEntities
XML<?xml version="1.0" encoding="UTF-8" ?> <ListEntities> <Entity partitionKey="ITEmployee" rowKey="ref-0001"> <Properties name="Department" value="ITAdministration" /> <Properties name="Address" value="C\Pirandello" /> <Properties name="Surname" value="Green" /> <Properties name="Name" value="Paolo" /> </Entity> <Entity partitionKey="ITEmployee" rowKey="ref-0002"> <Properties name="Department" value="Developments" /> <Properties name="Address" value="C\Francisco" /> <Properties name="Surname" value="Lopez" /> <Properties name="Name" value="Luis" /> </Entity> <Entity partitionKey="ITEmployee" rowKey="ref-0003"> <Properties name="Department" value="Sales" /> <Properties name="Address" value="C\Espada" /> <Properties name="Surname" value="Red" /> <Properties name="Name" value="Paula" /> </Entity> </ListEntities>
Output for operation
QueryOfSubsetEntityProperties
:Output for operation QueryOfSubsetEntityProperties
XML<?xml version="1.0" encoding="UTF-8" ?> <ListEntities> <Entity> <Property partitionKey="ITEmployee" /> <Property rowKey="ref-0001" /> <Property name="Department" value="ITAdministration" /> <Property name="nonExistingProperty" /> <Property name="Surname" value="Green" /> </Entity> </ListEntities>
Properties
partitionKey
androwKey
are always returned because they are used to uniquely identify the entity. Since the operation is able to return multiple properties of more than one object, it is important to assign the properties to the associated entity.