org.soyatec.windows.azure.table
Class TableStorageEntity
java.lang.Object
org.soyatec.windows.azure.table.TableStorageEntity
- Direct Known Subclasses:
- SimpleTableStorageEntity
public abstract class TableStorageEntity
- extends java.lang.Object
This class represents an entity (row) in a table in table storage.
Two entieis are considered to same when they have same PartitionKey and same
RowKey in azure table service. This feature is used when update/merge/load
entity from table service.
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
getValues
public java.util.List<AzureTableColumn> getValues()
setValues
public void setValues(java.util.List<AzureTableColumn> values)
getTimestamp
public java.sql.Timestamp getTimestamp()
setTimestamp
public void setTimestamp(java.sql.Timestamp timestamp)
getPartitionKey
public java.lang.String getPartitionKey()
setPartitionKey
public void setPartitionKey(java.lang.String partitionKey)
getRowKey
public java.lang.String getRowKey()
setRowKey
public void setRowKey(java.lang.String rowKey)
getETag
public java.lang.String getETag()
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
sameEntity
public boolean sameEntity(TableStorageEntity entity)
- Different with equals(). Two entieis are considered to same when they
have same PartitionKey and same RowKey in azure table service. This
feature is used when update/merge/load entity from table service.
- Parameters:
entity -
- Returns:
- True only if the entity's PartitionKey and RowKey are all same
with given entity.