NAME

Oak::Persistent - Implements persistency in object properties

SYNOPSIS

use base qw(Oak::Persistent);

DESCRIPTION

This module is the base for all objects that needs persistency. It implements the basic functions to store the object data.

OBJECT METHODS

Oak::Persistent inherits all Oak::Object methods and implements/overrides the following

after_construction

Overwritten only to call load_initial_properties, you need to call SUPER at the beggining of the function if you overrides it

load_initial_properties

This function is called at constructor to load the properties that always will be used by the object. Simply call get with all the properties you need.

get_hash(NAME,NAME,...)

Overriden just to call load_property if the requested property is not in the object property hash.

set(NAME=>VALUE,NAME=>VALUE,...)

Overriden to call chooseFiler and store with the selected filer.

choose_filer(NAME)

Selects the filer which works with NAME property of object. Returns the name of the filer.

test_filer(NAME)

Create the filer NAME unless exists and defined.

BUGS

Too early to determine. :)

COPYRIGHT

Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> Aguimar Mendonca Neto <aguimar@email.com.br> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.