LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Class implementing Query adapter for working with Azure queries in a structured way

__construct(
null|\Zend_Service_WindowsAzure_Storage_TableEntityQuery $select
=
null
)
:
void
Constructor
Name | Type | Description |
---|---|---|
$select | null|\Zend_Service_WindowsAzure_Storage_TableEntityQuery | Table select object |

assemble(
)
:
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
Assemble query
Simply return the WindowsAzure table entity query object
Type | Description |
---|---|
\Zend_Service_WindowsAzure_Storage_TableEntityQuery |

from(
string $from
)
:
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
FROM clause (table name)
Name | Type | Description |
---|---|---|
$from | string |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

getAzureSelect(
)
:
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
Get Azure select query
Type | Description |
---|---|
\Zend_Service_WindowsAzure_Storage_TableEntityQuery |

limit(
int $limit
)
:
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
LIMIT clause (how many rows to return)
Name | Type | Description |
---|---|---|
$limit | int |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

order(
string $sort, string $direction
=
'asc'
)
:
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
ORDER BY clause (sorting)
Name | Type | Description |
---|---|---|
$sort | string | Column to sort by |
$direction | string | Direction - asc/desc |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |
Exception | Description |
---|---|
\Zend_Cloud_OperationNotAvailableException |

select(
string $select
)
:
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
SELECT clause (fields to be selected)
Does nothing for Azure.
Name | Type | Description |
---|---|---|
$select | string |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

where(
string $where, mixed $value
=
null, string $op
=
'and'
)
:
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
WHERE clause (conditions to be used)
Name | Type | Description |
---|---|---|
$where | string | |
$value | mixed | Value or array of values to be inserted instead of ? |
$op | string | Operation to use to join where clauses (AND/OR) |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |

whereId(
array $value
)
:
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
WHERE clause for item ID
This one should be used when fetching specific rows since some adapters have special syntax for primary keys
Name | Type | Description |
---|---|---|
$value | array | Row ID for the document (PartitionKey, RowKey) |
Type | Description |
---|---|
\Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query |