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 © 2018. All Rights Reserved.