Simon Flack > Maypole-2.08 > Maypole::Model::CDBI

Download:
Maypole-2.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  6
View/Report Bugs
Source   Latest Release: Maypole-2.13

NAME ^

Maypole::Model::CDBI - Model class based on Class::DBI

DESCRIPTION ^

This is a master model class which uses Class::DBI to do all the hard work of fetching rows and representing them as objects. It is a good model to copy if you're replacing it with other database abstraction modules.

It implements a base set of methods required for a Maypole Data Model. See Maypole::Model::Base for these:

adopt
class_of
do_edit
list
related
setup_database
fetch_objects

Additional Actions ^

delete

Unsuprisingly, this command causes a database record to be forever lost.

search

The search action

Helper Methods ^

order
stringify_column
do_pager
related_class

Given an accessor name as a method, this function returns the class this accessor returns.

syntax highlighting: