Main > Programming > Libraries >

SPOPS::Iterator 0.87

SPOPS::Iterator 0.87

Sponsored Links

SPOPS::Iterator 0.87 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.28 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1023
Date added: 2007-01-05
Publisher: Chris Winters

SPOPS::Iterator 0.87 description

SPOPS::Iterator is a class to cycle through results and return SPOPS objects.

SYNOPSIS

my $iter = $spops_class->fetch_iterator({ where => last_name like ?,
value => [ smi% ] });
while ( $iter->has_next ) {
my $object = $iter->get_next;
print "Object ID: ", $object->id, " at position: ",
$iter->position, "n";
}

One of the problems with current SPOPS implementations is that retrieving groups of objects is an all-or-nothing affair -- you get a list with all instantiated objects or you do not retrive them in the first place. This can be quite memory intensive, particularly when a user executes a query that can return thousands of objects back at one time.
This class -- or, more specifically, implementations of the interface in this class -- aims to change that. Instead of returning a list of objects from a group retrieval, you get back an SPOPS::Iterator object. This object has a simple interface to cycle forward through objects and let you deal with them one at a time.

It does not keep track of these for you -- once you request the SPOPS object through the get_next() call, the iterator loses track of it. The iterator does keep track of the current count (on a 1-based scheme) and whether you are currently on the first or last element.

It is important to state that this works within the realm of other SPOPS capabilities -- just like the fetch_group() method, all objects returned will get checked for security, and if a user cannot see a certain object it does not get returned and the iterator moves onto the next object.

As a result, users will never create an SPOPS::Iterator object themselves. Instead, the object is returned from a method in a SPOPS implementation class, such as SPOPS::DBI.

The initial module documentation is for the interface; there is also a section of creating a subclass of this module for SPOPS authors.

SPOPS::Iterator 0.87 Screenshot

Advertisements

SPOPS::Iterator 0.87 Keywords

Bookmark SPOPS::Iterator 0.87

Hyperlink code:
Link for forum:

SPOPS::Iterator 0.87 Copyright

WareSeeker periodically updates pricing and software information of SPOPS::Iterator 0.87 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of SPOPS::Iterator 0.87 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
SPOPS::Manual::Configuration is a description of variables used in the SPOPS configuration process. Free Download
Net::Delicious::Iterator is an iterator class for Net::Delicious thingies. Free Download
phpArmory is a PHP class library that allows developers to access data from the World of Warcraft Armory Web site. Free Download
Tracker is a first class object database, extensible tag/metadata database, search tool and indexer. Free Download
Volity::Player is a Perl module for Volity players, from a referees perspective. Free Download
Class::Contract - Design-by-Contract OO in Perl. Free Download
JOAP::Server::Object is a base class for Things Servable By JOAP Servers. Free Download
idioskopos is a C++ library that simplifies the addition of object reflection and introspection. Free Download