public class TableRequestOptions extends RequestOptions
Modifier and Type | Class and Description |
---|---|
static interface |
TableRequestOptions.PropertyResolver
The interface whose function is used to get the
|
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 0.4.0,
see setDateBackwardCompatibility(Boolean) . |
TableRequestOptions.PropertyResolver |
getPropertyResolver()
Gets the interface that contains a function which is used to get the
|
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 0.4.0. |
void |
setPropertyResolver(TableRequestOptions.PropertyResolver propertyResolver)
Sets the interface that contains a function which is used to get the
|
void |
setTablePayloadFormat(TablePayloadFormat payloadFormat)
Sets the
TablePayloadFormat to be used. |
getLocationMode, getMaximumExecutionTimeInMs, getOperationExpiryTimeInMs, getRetryPolicyFactory, getTimeoutIntervalInMs, setLocationMode, setMaximumExecutionTimeInMs, 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()
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 0.4.0,
see setDateBackwardCompatibility(Boolean)
.
See here for more details.
true
if dateBackwardCompatibility
is enabled; otherwise, false
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)
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 0.4.0.
dateBackwardCompatibility
is by default false
, indicating a post 0.4.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
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/