public class DynamicTableEntity extends TableServiceEntity
TableEntity
type which allows callers direct access to the property map of the entity. This class extends
TableServiceEntity
to eliminate the use of reflection for serialization and deserialization.etag, partitionKey, rowKey, timeStamp
Constructor and Description |
---|
DynamicTableEntity()
Nullary default constructor.
|
DynamicTableEntity(HashMap<String,EntityProperty> properties)
Constructs a
DynamicTableEntity instance using the specified property map. |
DynamicTableEntity(String partitionKey,
String rowKey)
Initializes a new instance of the
DynamicTableEntity class with the specified partition key and row key. |
DynamicTableEntity(String partitionKey,
String rowKey,
HashMap<String,EntityProperty> properties)
Initializes a new instance of the
DynamicTableEntity class with the specified partition key and row key. |
DynamicTableEntity(String partitionKey,
String rowKey,
String etag,
HashMap<String,EntityProperty> properties)
Initializes a new instance of the
DynamicTableEntity class with the specified partition key and row key. |
Modifier and Type | Method and Description |
---|---|
HashMap<String,EntityProperty> |
getProperties()
Gets the property map for this
DynamicTableEntity instance. |
void |
readEntity(HashMap<String,EntityProperty> properties,
OperationContext opContext)
Populates this
DynamicTableEntity instance using the specified map of property names to
EntityProperty data typed values. |
void |
setProperties(HashMap<String,EntityProperty> properties)
Sets the property map for this
DynamicTableEntity instance. |
HashMap<String,EntityProperty> |
writeEntity(OperationContext opContext)
Returns the map of property names to
EntityProperty data values from this DynamicTableEntity
instance. |
getEtag, getPartitionKey, getReflectedEntityCache, getRowKey, getTimestamp, isReflectedEntityCacheDisabled, readEntityWithReflection, setEtag, setPartitionKey, setReflectedEntityCacheDisabled, setRowKey, setTimestamp, writeEntityWithReflection
public DynamicTableEntity()
public DynamicTableEntity(String partitionKey, String rowKey)
DynamicTableEntity
class with the specified partition key and row key.partitionKey
- A String
which represents the partition key of the DynamicTableEntity
to be initialized.rowKey
- A String
which represents the row key of the DynamicTableEntity
to be initialized.public DynamicTableEntity(HashMap<String,EntityProperty> properties)
DynamicTableEntity
instance using the specified property map.properties
- A java.util.HashMap
containing a map of String
property names to
EntityProperty
data typed values to store in the new DynamicTableEntity
.public DynamicTableEntity(String partitionKey, String rowKey, HashMap<String,EntityProperty> properties)
DynamicTableEntity
class with the specified partition key and row key.partitionKey
- A String
which represents the partition key of the DynamicTableEntity
to be initialized.rowKey
- A String
which represents the row key of the DynamicTableEntity
to be initialized.properties
- A java.util.HashMap
containing a map of String
property names to
EntityProperty
data typed values to store in the new DynamicTableEntity
.public DynamicTableEntity(String partitionKey, String rowKey, String etag, HashMap<String,EntityProperty> properties)
DynamicTableEntity
class with the specified partition key and row key.partitionKey
- A String
which represents the partition key of the DynamicTableEntity
to be initialized.rowKey
- A String
which represents the row key of the DynamicTableEntity
to be initialized.etag
- The ETag of the DynamicTableEntity
to be initialized. This value is used to determine if the table
entity has changed since it was last read from Microsoft Azure storage. The client cannot update this value
on the service.properties
- A java.util.HashMap
containing a map of String
property names to
EntityProperty
data typed values to store in the new DynamicTableEntity
.public HashMap<String,EntityProperty> getProperties()
DynamicTableEntity
instance.java.util.HashMap
containing the map of String
property names to
EntityProperty
data typed values for this DynamicTableEntity
instance.public void readEntity(HashMap<String,EntityProperty> properties, OperationContext opContext)
DynamicTableEntity
instance using the specified map of property names to
EntityProperty
data typed values.readEntity
in interface TableEntity
readEntity
in class TableServiceEntity
properties
- The java.util.HashMap
of String
property names to EntityProperty
data typed values to store in this DynamicTableEntity
instance.opContext
- An OperationContext
object used to track the execution of the operation.public void setProperties(HashMap<String,EntityProperty> properties)
DynamicTableEntity
instance.properties
- A java.util.HashMap
containing the map of String
property names to
EntityProperty
data typed values to set in this DynamicTableEntity
instance.public HashMap<String,EntityProperty> writeEntity(OperationContext opContext) throws StorageException
EntityProperty
data values from this DynamicTableEntity
instance.writeEntity
in interface TableEntity
writeEntity
in class TableServiceEntity
opContext
- An OperationContext
object used to track the execution of the operation.java.util.HashMap
containing the map of String
property names to
EntityProperty
data typed values stored in this DynamicTableEntity
instance.StorageException
- if a Storage service error occurs.Copyright © 2019. All rights reserved.