++ed by:
KEEDI SHARYANTO AWNCORP PERLANCAR

4 PAUSE user(s)
4 non-PAUSE user(s).

Laurent Dami
and 1 contributors

NAME

DBIx::DataModel::Statement - DBIx::DataModel statement objects

DESCRIPTION

The purpose of a statement object is to retrieve rows from the database and bless them as objects of appropriate classes.

Internally the statement builds and then encapsulates a DBI statement handle (sth).

The design principles for statements are described in the DESIGN section of the manual (purpose, lifecycle, etc.).

METHODS

new

  my $statement 
    = DBIx::DataModel::Statement->new($connected_source, %options);

This is the statement constructor; $connected_source is an instance of DBIx::DataModel::ConnectedSource. If present, %options are delegated to the refine() method.

Explicit calls to the statement constructor are exceptional; the usual way to create a statement is through ConnectedSource::select().

PRIVATE METHOD NAMES

The following methods or functions are used internally by this module and should be considered as reserved names, not to be redefined in subclasses :

_bless_from_DB
_compute_from_DB_handlers