SPOPS::Iterator 0.87
Sponsored Links
SPOPS::Iterator 0.87 Ranking & Summary
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.
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
SPOPS::Iterator 0.87 Keywords
SPOPS
Iterator 0.87
to cycle
SPOPS objects
objects
object
class
return
cycle
iterator
SPOPS::Iterator
SPOPSIterator
SPOPS::Iterator 0.87
Libraries
Programming
Bookmark SPOPS::Iterator 0.87
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
myspace falling objects
business objects
objects in the rear view mirror may appear closer than they are
hidden objects games
sims 2 objects
falling objects
sims objects
objects that reflect light
object lessons
hidden object games
spopspaintball
objects in motion
objectives for resumes
objects of my affection lyrics
objective
jpopsuki
object desktop
objects for the sims 2
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
Latest Software
Popular Software
Favourite Software