public class TableRequestOptions extends RequestOptions
Modifier and Type | Class and Description |
---|---|
static interface |
TableRequestOptions.EncryptionResolver
The interface whose function is used to get the value indicating whether a property should be encrypted or not
given the partition key, row key, and the property name.
|
static interface |
TableRequestOptions.PropertyResolver
The interface whose function is used to get the
EdmType for an entity property
given the partition key, row, key, and the property name, if the interface is implemented |
Constructor and Description |
---|
TableRequestOptions()
Creates an instance of the
TableRequestOptions |
TableRequestOptions(TableRequestOptions other)
Creates an instance of the
RequestOptions class by copying values from another
TableRequestOptions instance. |
Modifier and Type | Method and Description |
---|---|
Boolean |
getDateBackwardCompatibility()
Gets whether the client should look to correct Date values stored on a
TableEntity
that may have been written using versions of this library prior to 2.0.0,
see setDateBackwardCompatibility(Boolean) . |
TableEncryptionPolicy |
getEncryptionPolicy()
Gets the encryption policy to use for this request.
|
TableRequestOptions.EncryptionResolver |
getEncryptionResolver()
Gets the interface that contains a function which is used to get the value indicating whether a property should
be encrypted or not given the partition key, row key, and the property name.
|
TableRequestOptions.PropertyResolver |
getPropertyResolver()
Gets the interface that contains a function which is used to get the
EdmType for an entity property
given the partition key, row, key, and the property name. |
TablePayloadFormat |
getTablePayloadFormat()
Gets the
TablePayloadFormat to be used. |
void |
setDateBackwardCompatibility(Boolean dateBackwardCompatibility)
Sets whether the client should look to correct Date values stored on a
TableEntity
that may have been written using versions of this library prior to 2.0.0. |
void |
setEncryptionPolicy(TableEncryptionPolicy encryptionPolicy)
Sets the TableEncryptionPolicy object to use for this request.
|
void |
setEncryptionResolver(TableRequestOptions.EncryptionResolver encryptionResolver)
Sets the interface that contains a function which is used to get the value indicating whether a property should
be encrypted or not given the partition key, row key, and the property name.
|
void |
setPropertyResolver(TableRequestOptions.PropertyResolver propertyResolver)
Sets the interface that contains a function which is used to get the
EdmType for an entity property
given the partition key, row, key, and the property name. |
void |
setTablePayloadFormat(TablePayloadFormat payloadFormat)
Sets the
TablePayloadFormat to be used. |
getLocationMode, getMaximumExecutionTimeInMs, getOperationExpiryTimeInMs, getRetryPolicyFactory, getTimeoutIntervalInMs, requireEncryption, setLocationMode, setMaximumExecutionTimeInMs, setRequireEncryption, setRetryPolicyFactory, setTimeoutIntervalInMs
public TableRequestOptions()
TableRequestOptions
public TableRequestOptions(TableRequestOptions other)
RequestOptions
class by copying values from another
TableRequestOptions
instance.other
- A TableRequestOptions
object that represents the request options to copy.public TablePayloadFormat getTablePayloadFormat()
TablePayloadFormat
to be used. For more information about TablePayloadFormat
defaults,
see setTablePayloadFormat(TablePayloadFormat)
.TablePayloadFormat
used by this TableRequest
.public TableRequestOptions.PropertyResolver getPropertyResolver()
EdmType
for an entity property
given the partition key, row, key, and the property name. For more information about the TableRequestOptions.PropertyResolver
defaults, see setPropertyResolver(PropertyResolver)
.TableRequestOptions.PropertyResolver
object.public Boolean getDateBackwardCompatibility()
TableEntity
that may have been written using versions of this library prior to 2.0.0,
see setDateBackwardCompatibility(Boolean)
.
See here for more details.
true
if dateBackwardCompatibility
is enabled; otherwise, false
public TableEncryptionPolicy getEncryptionPolicy()
setEncryptionPolicy(TableEncryptionPolicy)
.TableEncryptionPolicy
object that represents the current encryption policy.public TableRequestOptions.EncryptionResolver getEncryptionResolver()
TableRequestOptions.EncryptionResolver
defaults, see setEncryptionResolver(EncryptionResolver)
.TableRequestOptions.PropertyResolver
object.public void setTablePayloadFormat(TablePayloadFormat payloadFormat)
TablePayloadFormat
to be used.
The default TablePayloadFormat
is set in the client and is by default TablePayloadFormat.Json
.
You can change the TablePayloadFormat
on this request by setting this property. You can also change the
value on the CloudTableClient.getDefaultRequestOptions()
object so that all subsequent requests made
via the service client will use that TablePayloadFormat
.
payloadFormat
- Specifies the TablePayloadFormat
to set.public void setPropertyResolver(TableRequestOptions.PropertyResolver propertyResolver)
EdmType
for an entity property
given the partition key, row, key, and the property name.
The default TableRequestOptions.PropertyResolver
is set in the client and is by default null, indicating not to use a
property resolver. You can change the TableRequestOptions.PropertyResolver
on this request by setting this property. You can
also change the value on the CloudTableClient.getDefaultRequestOptions()
object so that all subsequent
requests made via the service client will use that TableRequestOptions.PropertyResolver
.
propertyResolver
- Specifies the TableRequestOptions.PropertyResolver
to set.public void setDateBackwardCompatibility(Boolean dateBackwardCompatibility)
TableEntity
that may have been written using versions of this library prior to 2.0.0.
dateBackwardCompatibility
is by default false
, indicating a post 2.0.0 version or mixed-
platform usage. You can change the dateBackwardCompatibility
on this request by setting this property.
You can also change the value on the CloudTableClient.getDefaultRequestOptions()
object so that all
subsequent requests made via the service client will use that dateBackwardCompatibility
.
See here for more details.
dateBackwardCompatibility
- true
to enable dateBackwardCompatibility
; otherwise, false
public void setEncryptionPolicy(TableEncryptionPolicy encryptionPolicy)
The default TableEncryptionPolicy is set in the client and is by default null, indicating no encryption. You can
change the TableEncryptionPolicy on this request by setting this property. You can also change the value on the
ServiceClient.getDefaultRequestOptions()
object so that all subsequent requests made via the service
client will use that TableEncryptionPolicy.
encryptionPolicy
- the TableEncryptionPolicy object to use when making service requests.public void setEncryptionResolver(TableRequestOptions.EncryptionResolver encryptionResolver)
TableRequestOptions.EncryptionResolver
is
required if a TableEncryptionPolicy
is specified.
You can change the TableRequestOptions.EncryptionResolver
on this request by setting this property. You can also change the
value on the CloudTableClient.getDefaultRequestOptions()
object so that all subsequent requests made
via the service client will use that TableRequestOptions.EncryptionResolver
.
encryptionResolver
- Specifies the TableRequestOptions.EncryptionResolver
to set.Copyright © 2018. All Rights Reserved.