=head1 NAME
-DBIX::Class::Recordset - Responsible for fetching and creating recordsets.
+DBIX::Class::ResultSet - Responsible for fetching and creating resultset.
=head1 SYNOPSIS;
=head1 DESCRIPTION
-The recordset is also know as an iterator.
+The resultset is also known as an iterator.
=head1 METHODS
=item new <db_class> <attrs>
-The recordset constructor. Takes a db class and an
+The resultset constructor. Takes a db class and an
attribute hash (see below for more info on attributes)
=cut
=item cursor
-Return a storage driven cursor to the given record set.
+Return a storage driven cursor to the given resultset.
=cut
=item slice <first> <last>
-return a number of elements from the given record set.
+return a number of elements from the given resultset.
=cut
=item next
-Returns the next element in this record set.
+Returns the next element in this resultset.
=cut
sub _construct_object {
my ($self, @row) = @_;
- my @cols = $self->{class}->_select_columns;
+ my @cols = @{ $self->{attrs}{cols} };
+ s/^me\.// for @cols;
+ @cols = grep { /\(/ or ! /\./ } @cols;
my $new;
unless ($self->{attrs}{prefetch}) {
$new = $self->{class}->_row_to_object(\@cols, \@row);
=item all
-Returns all elements in the recordset. Is called implictly if the search
+Returns all elements in the resultset. Is called implictly if the search
method is used in list context.
=cut
=item reset
-Reset this recordset's cursor, so you can iterate through the elements again.
+Reset this resultset's cursor, so you can iterate through the elements again.
=cut
=item first
-resets the recordset and returns the first element.
+resets the resultset and returns the first element.
=cut
=item delete
-Deletes all elements in the recordset.
+Deletes all elements in the resultset.
=cut
=item page <page>
-Returns a new recordset representing a given page.
+Returns a new resultset representing a given page.
=cut
=head1 Attributes
-The recordset is responsible for handling the various attributes that
+The resultset is responsible for handling the various attributes that
can be passed in with the search functions. Here's an overview of them:
=over 4