Inherits from NSObject
Declared in WATableEntity.h

Overview

A class that represents an entity ina a Windows Azure table.

Tasks

  •   tableName

    The name of the table where this entity is located.

    property
  •   partitionKey

    The partition key of a table entity. The concatenation of the partition key and row key form the primary key for an entity, and so must be unique within the table.

    property
  •   rowKey

    The row key of a table entity. The concatenation of the partition key and row key form the primary key for an entity, and so must be unique within the table.

    property
  •   timeStamp

    The timestamp for this entity.

    property
  • – keys

    Returns a new array containing the entity’s keys.

  • – objectForKey:

    Returns the value associated with a given key.

  • – setObject:forKey:

    Adds a given key-value pair to the entity.

  • + createEntityForTable:

    Creates a new entity given the name of an existing table.

Properties

partitionKey

The partition key of a table entity. The concatenation of the partition key and row key form the primary key for an entity, and so must be unique within the table.

@property (copy) NSString *partitionKey

Declared In

WATableEntity.h

rowKey

The row key of a table entity. The concatenation of the partition key and row key form the primary key for an entity, and so must be unique within the table.

@property (copy) NSString *rowKey

Declared In

WATableEntity.h

tableName

The name of the table where this entity is located.

@property (readonly) NSString *tableName

Declared In

WATableEntity.h

timeStamp

The timestamp for this entity.

@property (readonly) NSDate *timeStamp

Declared In

WATableEntity.h

Class Methods

createEntityForTable:

Creates a new entity given the name of an existing table.

+ (WATableEntity *)createEntityForTable:(NSString *)table

Parameters

table

The name of the table for this entity.

Return Value

A new WATableEntity object.

Declared In

WATableEntity.h

Instance Methods

keys

Returns a new array containing the entity’s keys.

- (NSArray *)keys

Return Value

A new array containing the entity’s keys, or an empty array if the entity has no entries.

Declared In

WATableEntity.h

objectForKey:

Returns the value associated with a given key.

- (id)objectForKey:(NSString *)key

Parameters

key

The key for which to return the corresponding value.

Return Value

The value associated with key, or nil if no value is associated with key.

Declared In

WATableEntity.h

setObject:forKey:

Adds a given key-value pair to the entity.

- (void)setObject:(id)value forKey:(NSString *)key

Parameters

value

The value for key.

key

The key for value.

Declared In

WATableEntity.h