View on
MetaCPAN
Matthew Simon Cavalletto > DBIx-DBO2-0.008 > DBIx::DBO2::RecordSet

Download:
DBIx-DBO2-0.008.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

DBIx::DBO2::RecordSet - A sequential group of Record objects

SYNOPSIS ^

  $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();
  }

DESCRIPTION ^

The base implementation of RecordSet is an array of Record references.

Constructor:

new ( @records ) : $instance

Basics

Class and IDs

Conversions

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.

Positional Access

Sorting

Criteria Matching

CHANGES ^

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.

syntax highlighting: