public class TableResult extends Object
TableResult
class encapsulates the HTTP
response
and any table entity results returned by the Storage Service REST API operation called for a particular
TableOperation
.Constructor and Description |
---|
TableResult()
Initializes an empty
TableResult instance. |
TableResult(int httpStatusCode)
Initializes a
TableResult instance with the specified HTTP status code. |
Modifier and Type | Method and Description |
---|---|
String |
getEtag()
Gets the ETag returned with the table operation results.
|
int |
getHttpStatusCode()
Gets the HTTP status code returned by a table operation request.
|
HashMap<String,EntityProperty> |
getProperties()
Gets the map of properties for a table entity returned by the table operation.
|
Object |
getResult()
Gets the result returned by the table operation as an Object.
|
<T> T |
getResultAsType()
Gets the result returned by the table operation as an instance of the specified type.
|
public TableResult()
TableResult
instance.public TableResult(int httpStatusCode)
TableResult
instance with the specified HTTP status code.httpStatusCode
- An int which represents the HTTP status code for the table operation returned by the server.
public String getEtag()
String
containing the ETag returned by the server with the table operation results.public int getHttpStatusCode()
int which represents the HTTP status code for the table operation returned by the server.
public HashMap<String,EntityProperty> getProperties()
java.util.HashMap
of String
property names to EntityProperty
data
typed values representing the properties of a table entity.public Object getResult()
Object
reference which represents the result returned by the table operation.public <T> T getResultAsType()
T
reference which represents the result returned by the table operation./**
* 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.
*/