com.xerox.amazonws.simpledb
Class ItemVO

java.lang.Object
  extended by com.xerox.amazonws.simpledb.ItemVO
All Implemented Interfaces:
Item

public class ItemVO
extends Object
implements Item

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

Author:
D. Kavanagh, developer@dotech.com

Constructor Summary
ItemVO(String identifier)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemVO

public ItemVO(String identifier)
Method Detail

getIdentifier

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

Specified by:
getIdentifier in interface Item
Returns:
the id

getAttributes

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

Specified by:
getAttributes in interface Item
Returns:
the map of attributes

getAttribute

public 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.

Specified by:
getAttribute in interface Item
Returns:
the attribute value

getAttributeValues

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

Specified by:
getAttributeValues in interface Item
Returns:
the set of attribute values