com.xerox.amazonws.simpledb
Interface Item

All Known Implementing Classes:
ItemVO

public interface Item

This class represents an item in SimpleDB. To modify this item, use the interfaces in Domain.

Author:
D. Kavanagh, developer@dotech.com

Method Summary
 String getAttribute(String name)
          Gets a single attribute value.
 Map<String,Set<String>> getAttributes()
          Gets a map of all attributes for this item
 Set<String> getAttributeValues(String name)
          Gets a Set of values for the named attribute.
 String getIdentifier()
          Gets the name of the identifier that is unique to this Item
 

Method Detail

getIdentifier

String getIdentifier()
Gets the name of the identifier that is unique to this Item

Returns:
the id

getAttributes

Map<String,Set<String>> getAttributes()
Gets a map of all attributes for this item

Returns:
the map of attributes

getAttribute

String getAttribute(String name)
Gets a single attribute value. If multiple values exist, only the first will be returned. Calling getAttributeValues(String) should be used instead.

Returns:
the attribute value

getAttributeValues

Set<String> getAttributeValues(String name)
Gets a Set of values for the named attribute.

Returns:
the set of attribute values