The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.