public class TableAsyncClient extends Object
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
create()
creates new table with the name of this client
|
Mono<Void> |
createEntity(TableEntity entity)
insert a TableEntity with the given properties and return that TableEntity.
|
Mono<com.azure.core.http.rest.Response<Void>> |
createEntityWithResponse(TableEntity entity)
insert a TableEntity with the given properties and return that TableEntity.
|
Mono<com.azure.core.http.rest.Response<Void>> |
createWithResponse()
creates a new table with the name of this client
|
Mono<Void> |
delete()
deletes the table with the name of this client
|
Mono<Void> |
deleteEntity(String partitionKey,
String rowKey)
deletes the given entity
|
Mono<Void> |
deleteEntity(String partitionKey,
String rowKey,
String eTag)
deletes the given entity
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteEntityWithResponse(String partitionKey,
String rowKey,
String eTag)
deletes the given entity
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteWithResponse()
deletes the table with the name of this client
|
String |
getAccountName()
returns the account for this table
|
TablesServiceVersion |
getApiVersion()
returns the version
|
Mono<TableEntity> |
getEntity(String partitionKey,
String rowKey)
gets the entity which fits the given criteria
|
Mono<com.azure.core.http.rest.Response<TableEntity>> |
getEntityWithResponse(String partitionKey,
String rowKey)
gets the entity which fits the given criteria
|
String |
getTableName()
returns the table name associated with the client
|
String |
getTableUrl()
returns Url of this table
|
com.azure.core.http.rest.PagedFlux<TableEntity> |
listEntities()
Queries and returns all entities in the given table
|
com.azure.core.http.rest.PagedFlux<TableEntity> |
listEntities(ListEntitiesOptions options)
Queries and returns entities in the given table using the odata query options
|
Mono<Void> |
updateEntity(TableEntity entity)
if UpdateMode is MERGE, merges or fails if the entity doesn't exist.
|
Mono<Void> |
updateEntity(TableEntity entity,
boolean ifUnchanged,
UpdateMode updateMode)
if UpdateMode is MERGE, merges or fails if the entity doesn't exist.
|
Mono<Void> |
updateEntity(TableEntity entity,
UpdateMode updateMode)
updates the entity
|
Mono<com.azure.core.http.rest.Response<Void>> |
updateEntityWithResponse(TableEntity entity,
boolean ifUnchanged,
UpdateMode updateMode)
if UpdateMode is MERGE, merges or fails if the entity doesn't exist.
|
Mono<Void> |
upsertEntity(TableEntity entity)
based on Mode it either inserts or merges if exists or inserts or merges if exists
|
Mono<Void> |
upsertEntity(TableEntity entity,
UpdateMode updateMode)
based on Mode it either inserts or merges if exists or inserts or merges if exists
|
Mono<com.azure.core.http.rest.Response<Void>> |
upsertEntityWithResponse(TableEntity entity,
UpdateMode updateMode)
based on Mode it either inserts or merges if exists or inserts or merges if exists
|
public String getTableName()
public String getAccountName()
public String getTableUrl()
public TablesServiceVersion getApiVersion()
public Mono<com.azure.core.http.rest.Response<Void>> createWithResponse()
public Mono<Void> createEntity(TableEntity entity)
entity
- the entitypublic Mono<com.azure.core.http.rest.Response<Void>> createEntityWithResponse(TableEntity entity)
entity
- the entitypublic Mono<Void> upsertEntity(TableEntity entity)
entity
- entity to upsertpublic Mono<Void> upsertEntity(TableEntity entity, UpdateMode updateMode)
entity
- entity to upsertupdateMode
- type of upsertpublic Mono<com.azure.core.http.rest.Response<Void>> upsertEntityWithResponse(TableEntity entity, UpdateMode updateMode)
updateMode
- type of upsertentity
- entity to upsertpublic Mono<Void> updateEntity(TableEntity entity)
entity
- the entity to updatepublic Mono<Void> updateEntity(TableEntity entity, UpdateMode updateMode)
entity
- the entity to updateupdateMode
- which type of mode to executepublic Mono<Void> updateEntity(TableEntity entity, boolean ifUnchanged, UpdateMode updateMode)
updateMode
- which type of update to executeentity
- the entity to updateifUnchanged
- if the eTag of the entity must match the entity in the service or notpublic Mono<com.azure.core.http.rest.Response<Void>> updateEntityWithResponse(TableEntity entity, boolean ifUnchanged, UpdateMode updateMode)
updateMode
- which type of update to executeentity
- the entity to updateifUnchanged
- if the eTag of the entity must match the entity in the service or notpublic Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponse()
public Mono<Void> deleteEntity(String partitionKey, String rowKey)
partitionKey
- the partition keyrowKey
- the row keypublic Mono<Void> deleteEntity(String partitionKey, String rowKey, String eTag)
partitionKey
- the partition keyrowKey
- the row keyeTag
- the eTag of the entity, the delete will only occur if this matches the entity in the servicepublic Mono<com.azure.core.http.rest.Response<Void>> deleteEntityWithResponse(String partitionKey, String rowKey, String eTag)
partitionKey
- the partition keyrowKey
- the row keyeTag
- the eTag of the entity, the delete will only occur if this matches the entity in the servicepublic com.azure.core.http.rest.PagedFlux<TableEntity> listEntities()
public com.azure.core.http.rest.PagedFlux<TableEntity> listEntities(ListEntitiesOptions options)
options
- the odata query objectpublic Mono<TableEntity> getEntity(String partitionKey, String rowKey)
partitionKey
- the partition key of the entityrowKey
- the row key of the entitypublic Mono<com.azure.core.http.rest.Response<TableEntity>> getEntityWithResponse(String partitionKey, String rowKey)
partitionKey
- the partition key of the entityrowKey
- the row key of the entityCopyright © 2020 Microsoft Corporation. All rights reserved.