Persistent::Base

Persistent::Base is an Abstract Persistent Base Class.
Download

Persistent::Base Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Winters
  • Publisher web site:
  • http://search.cpan.org/~dwinters/Persistent-mSQL-0.50/lib/Persistent/mSQL.pm

Persistent::Base Tags


Persistent::Base Description

Persistent::Base is an Abstract Persistent Base Class. Persistent::Base is an Abstract Persistent Base Class.SYNOPSIS ### we are a subclass of ... ### use Persistent::Base; @ISA = qw(Persistent::Base);ABSTRACTThis is an abstract class used by the Persistent framework of classes to implement persistence with various types of data stores. This class provides the methods and interface for implementing Persistent classes. Refer to the Persistent documentation for a very thorough introduction to using the Persistent framework of classes.This class is part of the Persistent base package which is available from: http://www.bigsnow.org/persistent ftp://ftp.bigsnow.org/pub/persistentBefore we get started describing the methods in detail, it should be noted that all error handling in this class is done with exceptions. So you should wrap an eval block around all of your code. Please see the Persistent documentation for more information on exception handling in Perl.ABSTRACT METHODS THAT NEED TO BE OVERRIDDEN IN THE SUBCLASSdatastore -- Sets/Returns the Data Store Parameters eval { ### set the data store ### $person->datastore(@args); ### get the data store ### $href = $person->datastore(); }; croak "Exception caught: $@" if $@;Returns (and optionally sets) the data store of the object. This method throws Perl execeptions so use it with an eval block.Setting the data store can involve anything from initializing a connection to opening a file. Getting a data store usually means returning information pertaining to the data store in a useful form, such as a connection to a database or a location of a file. Requirements: · Perl


Persistent::Base Related Software