NAME
SimpleDB::Class::ResultSet - An iterator of items from a domain.
VERSION
version 0.0300
DESCRIPTION
This class is an iterator to walk to the items passed back from a query.
METHODS
The following methods are available from this class.
new ( params )
Constructor.
params
A hash.
simpledb
Required. A SimpleDB::Class object.
item_class
Required. A SimpleDB::Class::Item subclass name.
result
A result as returned from the send_request() method from SimpleDB::Class::HTTP. Either this or a where is required.
where
A where clause as defined in SimpleDB::Class::SQL. Either this or a result is required.
where ( )
Returns the where passed into the constructor.
simpledb ( )
Returns the simpledb passed into the constructor.
item_class ( )
Returns the item_class passed into the constructor.
result ( )
Returns the result passed into the constructor, or the one generated by fetch_result() if a where is passed into the constructor.
has_result ()
A boolean indicating whether a result was passed into the constructor, or generated by fetch_result().
iterator ( )
Returns an integer which represents the current position in the result set as traversed by next().
fetch_result ( )
Fetches a result, based on a where clause passed into a constructor, and then makes it accessible via the result() method.
next ()
Returns the next result in the result set. Also fetches th next partial result set if there's a next token in the first result set and you've iterated through the first partial set.
handle_item ( id , attributes )
Converts the attributes section of an item in a result set into a SimpleDB::Class::Item object.
LEGAL
SimpleDB::Class is Copyright 2009 Plain Black Corporation (http://www.plainblack.com/) and is licensed under the same terms as Perl itself.