org.soyatec.windows.azure.table
Class TableStorageEntity

java.lang.Object
  extended by 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.


Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getETag()
           
 java.lang.String getPartitionKey()
           
 java.lang.String getRowKey()
           
 java.sql.Timestamp getTimestamp()
           
 java.util.List<AzureTableColumn> getValues()
           
 int hashCode()
           
 boolean sameEntity(TableStorageEntity entity)
          Different with equals().
 void setPartitionKey(java.lang.String partitionKey)
           
 void setRowKey(java.lang.String rowKey)
           
 void setTimestamp(java.sql.Timestamp timestamp)
           
 void setValues(java.util.List<AzureTableColumn> values)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.