NAME

DBIx::Changeset::Record - Factory Interface to changeset files

SYNOPSIS

Factory Interface to changeset files

Perhaps a little code snippet.

    use DBIx::Changeset::Record;

    my $foo = DBIx::Changeset::Record->new('type', $opts);
    ...
        $foo->read('/moose/moose.sql');

INTERFACE

read This is the read interface implement in your own class

write This is the write interface implement in your own class

METHODS

init Called automatically to intialise the factory objects takes params passed to new and assigns them to accessors if they exist

validate Validate that the file data is correct

generate_uid Generates a uid writing it to the file

ACCESSORS

valid Has this file been processed as valid default false args: bool returns: bool

skipped Has this file been skipped default false args: bool returns: bool

outstanding Is this file outstanding default false args: bool returns: bool

id The UID of the file args: bool returns: bool

uri The location of the file data * READ ONLY * args: string returns: string

OVERRIDEN METHODS

get

 Override the ger accessor for id and valid so that if they are undef
 validate is called.

TYPES Default types included

disk Simply reads files from disk expects a uri of a filename

COPYRIGHT & LICENSE

Copyright 2004-2008 Grox Pty Ltd.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.