NAME
Net::Z3950::UDDI::ResultSet - back-end independent result-set for z2uddi
SYNOPSIS
$rs = new Net::Z3950::UDDI::ResultSet::uddi($db, $uddi_rs); # for example
$count = $rs->count();
$record = $rs->record(0);
DESCRIPTION
A Net::Z3950::UDDI::ResultSet object represents a result-set, the result of search a backend database of some kind or another, but hides the details of whether that database is a SOAP service or a UDDI repostory (or something else again) by presenting a simple, generic API.
METHODS
There is no constructor for ResultSet, which is an abstract base class. Each subclass has its own constructor, which will be called on the application's behalf by the search() method of the subclass's corresponding Net::Z3950::UDDI::Database subclass.
count()
$n = $rs->count();
Returns the number of records in the result-set, i.e. the number of records found by the search that created the result-set.
record()
foreach $i (0 .. $n-1) {
$rec = $rs->record($i);
}
Returns a single record from the result-set, indexed from zero.
SUBCLASSING
### to be written
SEE ALSO
Net::Z3950::UDDI::Database is the module that immediately uses this.
AUTHOR, COPYRIGHT AND LICENSE
As for Net::Z3950::UDDI.