Oak::Persistent - Implements persistency in object properties
This module is the base for all objects that needs persistency.
It implements the basic functions to store the object data.
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 after_construction 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.
- feed(NAME=>VALUE,NAME=>VALUE,...)
-
Defines a property without using any filer. Usefull at constructor, when you
want to set the properties you will use to create the filer. Or for objects
created that you already have the data (you made a optimized sql, and you have
the data of severall objects), this will make the object not to use the filer
to access this property.
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.
- Oak::Persistent::Error::ErrorCreatingFiler
-
The filer was still undef after the creation.
use base qw(Oak::Persistent);
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.