- SEE ALSO
- AUTHOR & COPYRIGHT
Amazon::SimpleBD::Item - A class representing a domain in SimpleDB
This is code is in the early stages of development. Do not consider it stable. Feedback and patches welcome.
Constructor for a domain. Takes a required HASHREF with three required keys:
An Amazon::SimpleDB account object the item is to be associated.
The domain the object is to be associated.
The name of the item for the constructed object.
Typically this method will not be called directly by a developer, but rather other parts of the Amazon::SimpleDB package.
This method does not check if an item exists and is accessible.
Returns a reference to the Amazon::SimpleDB account object.
Returns the domain name of the object.
NOTE: Suspect this is broken and that this should support something between 1 or all.
Take a required HASHREF of attributes to create. Multiple values should be stored as an ARRAY reference.
This method will return an error response if any of attributes already exist.
Take a required HASHREF of attributes to modify. Multiple values should be stored as an ARRAY reference.
put_attributes this method will overwrite any existing attributes and their values without complaint. If an attribute doesn't exist this method won't complain either.
Takes an optional HASHREF or ARRAYREF that define the attributes to delete. If nothing is passed, the default is to delete all attributes for the item are deleted. (Items are automatically deleted when they no longer have any attributes.)
Using an HASHREF will only delete attributes (defined by the HASH's keys) with a matching value. Multiple values should be stored as an ARRAYREF.
Please see the Amazon::SimpleDB manpage for author, copyright, and license information.