Martin Atkins > Util-DataThing-0.01_01 > Util::DataThing

Download:
Util-DataThing-0.01_01.tar.gz

Dependencies

Annotate this POD

Module Version: 0.01_01   Source  

NAME ^

Util::DataThing - A simple framework for creating introspectable business objects

SYNOPSIS ^

    package ExampleApp::Person;
    use base qw(Util::DataThing);
    
    __PACKAGE__->declare_property('name', STRING);

DESCRIPTION ^

This class provides a framework for providing business objects within an application.

Subclasses of this class support introspection via the type method, which returns a Util::DataThing::Type object describing the class.

The internal structure of the objects is opaque to subclasses and should not be relied upon. Subclasses may define new methods in addition to those created with this class's register_ methods, but they should be implemented in terms of the property accessors created by this class, not direct access to the object internals.

This is not an ORM or other mechanism for abstracting away your data access layer, but if you want to use an ORM then objects created with this class may be a good thing for your ORM to return.

TODO: Write more docs

AUTHOR AND COPYRIGHT ^

Written and maintained by Martin Atkins <mart@degeneration.co.uk>.

Copyright 2009 Six Apart Ltd. All Rights Reserved.

The items in this distribution may be distributed under the same terms as Perl itself.

syntax highlighting: