DBIx::DBO2::RecordSet - A sequential group of Record objects
$rs = DBIx::DBO2::RecordSet->new( @records ); print "Found " . $rs->count() . " records"; $rs->filter( { 'status' => 'New' } ); $rs->sort( 'creation_date' ); foreach ( 0 .. $rs->count() ) { print $rs->record( $_ )->name(); } foreach ( $rs->range_records( 11, 20 ) ) { print $_->name(); }
The base implementation of RecordSet is an array of Record references.
Constructor:
Create a new RecordSet.
Each of the below returns a RecordSet blessed into a particular subclass. Returns the original object if it is already of that subclass, or returns a cloned and converted copy.
Returns the contents of the RecordSet as stored internally within the object. Results are dependent on which subclass is in use.
INCOMPLETE
INCOMPLETE
INCOMPLETE
Return the record in the indicated position in the array.
Return the last record in the array.
Return a copy of the current set containing only those records at or between the start and stop positions.
Return the records at or between the start and stop positions.
Sort the contents of the set.
Return a sorted copy of the current set.
Return the records from the current set, in sorted order.
Remove non-matching records from the set.
Return a set containing only the matching records from the current set.
Return the matching records from the current set.
2001-06-29 Moved to DBIx::DBO2 namespace.
2001-04-10 Added last_record.
2000-12-13 Substantial revisions. Moved to EBiz::Database namespace.
2000-12-01 Ed: Created.