org.soyatec.windows.azure.table

New Interface Summary
ITable API entry point for using structured storage.
ICloudTableColumn A table column represents all attributes in a Azure Table in azure table service.
ITableServiceEntity This class represents an entity (row) in a table in table storage.

New Class Summary
TableServiceContext This class provide API to manipulate ITableServiceEntity, such as insert, update, delete etc.

Remove or Rename Interface Summary
BatchStorage Rename to IBatchExecutor
TableStorageConstants Move to org.soyatec.windows.azure.table.internal package, it is invisible now.

 

Remove or Rename Class Summary
TableStorageEntity Rename to AbstractTableServiceEntity
AzureTable

Rename to CloudTable(Package: org.soyatec.windows.azure.table.internal), the class is invisible.

You can use ITable(Package: org.soyatec.windows.azure.table) instead of it.

AzureTableColumn

Rename to CloudTableColumn(Package: org.soyatec.windows.azure.table.internal), the class is invisible.

You can use ICloudTableColumn(Package: org.soyatec.windows.azure.table) instead of it.

AzureTableRest

Rename to CloudTableRest(Package: org.soyatec.windows.azure.table.internal), the class is invisible.

You can use ITable(Package: org.soyatec.windows.azure.table) instead of it.

TableStorage Rename to TableStorageClient(Package: org.soyatec.windows.azure.table)
Query

Removed.

SimpleTableStorageEntity

Move to org.soyatec.windows.azure.table.internal package.

You can use AbstractTableServiceEntity(Package: org.soyatec.windows.azure.table) instead of it.

TableStorageRest

Move to org.soyatec.windows.azure.table.internal package.

You can use TableStorageClient(Package: org.soyatec.windows.azure.table) instead of it.

 

Modify Class Summary

AzureTable

(New name: CloudTable)

Get the methods from ITable.

New Methods TableServiceContext getTableServiceContext() Get an instanceof TableServiceContext to manipulate table entities, such as insert, delete, update, etc.
Modify Methods abstract boolean doesTableExist()

Change to

abstract boolean isTableExist()

abstract void deleteEntity(TableStorageEntity obj)

Move to class TableServiceContext

abstract void deleteEntity(ITableServiceEntity obj)

abstract void deleteEntityIfNotModified(TableStorageEntity obj)

Move to class TableServiceContext

abstract void deleteEntityIfNotModified(ITableServiceEntity obj)

abstract void mergeEntity(TableStorageEntity obj)

Move to class TableServiceContext

abstract void mergeEntity(ITableServiceEntity obj)

void setModelClass(java.lang.Class<? extends TableStorageEntity> modelClass)

Move to class TableServiceContext

void setModelClass(java.lang.Class<? extends ITableServiceEntity> modelClass)

void setRetryPolicy(RetryPolicy retryPolicy)

Change to

void setRetryPolicy(IRetryPolicy retryPolicy)

abstract void updateEntity(TableStorageEntity obj)

Move to class TableServiceContext

abstract void updateEntity(ITableServiceEntity obj)

abstract void updateEntityIfNotModified(TableStorageEntity obj)

Move to class TableServiceContext

abstract void updateEntityIfNotModified(ITableServiceEntity obj)

abstract java.util.List<TableStorageEntity> retrieveEntities()

Move to class TableServiceContext

abstract java.util.List<ITableServiceEntity> retrieveEntities(Class<? extends ITableServiceEntity> modelClass)

abstract java.util.List<TableStorageEntity> retrieveEntities(java.lang.String queryExpression)

Move to class TableServiceContext

abstract java.util.List<ITableServiceEntity> retrieveEntities(java.lang.String queryExpression, Class<? extends ITableServiceEntity> modelClass)

abstract java.util.List<TableStorageEntity> retrieveEntitiesByKey(java.lang.String partitionKey, java.lang.String rowKey)

Move to class TableServiceContext

abstract java.util.List<ITableServiceEntity> retrieveEntitiesByKey(java.lang.String partitionKey, java.lang.String rowKey, Class<? extends ITableServiceEntity> modelClass)

TableStorageEntity

(New name: AbstractTableServiceEntity)

New Methods void setETag(java.lang.String tag) Set the ETag.
Modify Methods boolean sameEntity(TableStorageEntity entity) Change to: boolean isSameEntity(ITableServiceEntity entity)

TableStorage

(New name: TableStorageClient)

 

New Methods static TableStorageClient create(boolean usePathStyleUris, java.lang.String accountName, java.lang.String base64Key)  Creates a TableStorageClient service object.
static ICloudTableColumn createCloudTableColumn(java.lang.String name, java.lang.String value,ETableColumnType type)  Create a ICloudTableColumn.
static ITableServiceEntity createTableServiceEntity(java.lang.String partitionKey, java.lang.String rowKey, java.util.List<ICloudTableColumn> values)  Create a ITableServiceEntity with partitionKey, rowKey and a list of ICloudTableColumn.
static ITableServiceEntity createTableServiceEntity(java.lang.String partitionKey, java.lang.String rowKey, java.sql.Timestamp timestamp)  Create a ITableServiceEntity with partitionKey, rowKey and timestamp.
abstract boolean isTableExist(java.lang.String tableName) throws StorageException Check if the table exists.
abstract ITable createTableIfNotExit(String tableName) Create a table if not exist.
abstract ITable createTable(String tableName) Create a table.
abstract deleteTableIfExist(String tableName) Delete a table if exist.
abstract void deleteTable(String tableName) Delete a table.
abstract List<String> listTables(String prefix) throws StorageException Lists all the tables with the prefix under this service's URL
Modify Methods static java.lang.String  void setRetryPolicy(RetryPolicy retryPolicy)

Change to

static java.lang.String  void setRetryPolicy(IRetryPolicy retryPolicy)

RetryPolicy getRetryPolicy() Change return type to IRetryPolicy
abstract  AzureTable getAzureTable(java.lang.String tableName)

Change to

abstract  ITable getTableReference(java.lang.String tableName)

Modify Fields static RetryPolicy DefaultRetryPolicy Change type to IRetryPolicy