The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.80 - 2003-11-29

  • Overall:
    • Add auto-generated mutators and clearing mutators along with the accessors.
    • Customize the 'links_to' mechanism for DBI object relationships.
  • Individual:
    • MANIFEST:
      • Add eg/My/CommonResources.pm, forgotten from earlier version. Thanks to Simon Ilyushchenko (simonf@cshl.edu) for the report.
    • SPOPS.pm:
      • AUTOLOAD-created accessor now also acts as a mutator. I thought it was already doing this but Simon set me straight.
      • Also generate a '{fieldname}_clear' to act as a clearing mutator (set a field to undef).
      • Allow SPOPS subclasses to define their own accessor/mutator/clearing mutator methods by overriding '_internal_create_field_methods()'. See docs for details.
    • SPOPS/ClassFactory/DBI.pm:
      • Allow 'links_to' declarations to customize the to/from ID fields and alias in addition to the linking table. Thanks to Stathy Touloumis (stathy@edisonaffiliates.com) for the idea.
      • In 'links_to' generation stage, try to require the linked class before getting its configuration. This allows us to declare the SPOPS class as a superclass of our customized class.
    • SPOPS/ClassFactory/Default.pm:
      • In 'has_a' generation stage, try to require the contained class before getting its configuration. This allows us to declare the SPOPS class as a superclass of our customized class.
    • SPOPS/DBI.pm:
      • In save() allow the user to pass in an empty arrayref for 'no_insert' and 'no_update' that will override whatever is defined in the object configuration.
    • SPOPS/Manual/Object.pod:
      • Modify the accessor/mutator discussion to reflect changed code.
    • SPOPS/Manual/Relationships.pod:
      • Add new 'links_to' configuration options.
    • SPOPS/Secure.pm:
      • Fix typo in message generated from 'register_security_error()', thanks to Simon for the report.
    • t/00_base.t:
      • Test auto-created mutators and clearing mutators.
    • t/62_export_perl.t:
      • Fix bug in tests exposed by modified hash key ordering in 5.8+. (Note: use 'is_deeply()'!)

Documentation

User Guide and Reference Manual for SPOPS
How SPOPS builds classes
Description of variables used in the SPOPS configuration process
Recipes for SPOPS usage
SPOPS datasource use and how you can customize
Error handling in SPOPS
Moving data (and more) with SPOPS
Introduction and overview of SPOPS
Shows how you interact with SPOPS objects.
Use rules to give your object custom behavior
SPOPS object relationships
SPOPS security system and how you can customize
How SPOPS serializes objects
Perform tests on a DBD driver to see if it may work with SPOPS

Modules

Simple Perl Object Persistence with Security
Create SPOPS classes from configuration and code
Define additional configuration methods
Default configuration methods called from SPOPS.pm
Create relationships among LDAP objects
Implement SPOPS class, serializing into a DBI database
InterBase-specific routines for the SPOPS::DBI
MySQL-specific code for DBI collections
Oracle-specific routines for the SPOPS::DBI
PostgreSQL-specific routines for the SPOPS::DBI
SQLite-specific code for DBI collections
Sybase-specific routines for the SPOPS::DBI
Represent type information for a single table
(DEPRECATED) Centralized error messages from all SPOPS objects.
Base class for exceptions in SPOPS
SPOPS exception with extra DBI parameters
SPOPS exception with extra LDAP parameters
SPOPS exception with extra security parameters
Export SPOPS objects to various formats
Export SPOPS objects as data for importing directly into a DBI table
Dump SPOPS objects to a portable format
Dump SPOPS objects to a pure serialized Perl format
Export SPOPS objects as a series of SQL statements
Export SPOPS objects in XML format
Store SPOPS objects in a GDBM database
Implement as objects files containing perl hashrefs dumped to text
Factory and parent for importing SPOPS objects
Import raw data to a DBI table
Import a DBI table structure
Factory class for database-specific transformations
Table transformations for InterBase/FirebirdSQL
Table transformations for MySQL
Table transformations for Oracle
Table transformations for PostgreSQL
Table transformations for SQLite
Table transformations for Sybase/MSSQL
Import SPOPS objects
Provide methods for initializing groups of SPOPS objects at once
Class to cycle through results and return SPOPS objects
Implementation of SPOPS::Iterator for SPOPS::DBI
Implementation of SPOPS::Iterator for SPOPS::LDAP
SPOPS::Iterator wrapper around object lists
Retrieve an auto-increment value from a DBI statement or database handle
Retrieve IDENTITY values from a supported DBI database
Retrieves ID field information from a pool
Retrieve sequence values from a supported DBI database
Creates a random alphanumeric code for the ID field
Creates a Universally Unique ID (UUID) as a key
Implement object persistence in an LDAP datastore
SPOPS::LDAP functionality but fetching objects from multiple datasources
Simple SPOPS class used for testing rules and other goodies
Generic routines for DBI database interaction
Implement security across one or more classes of SPOPS objects
Implement a security object and basic operations for DBI datasources
Define hierarchical security
Security object implementation for testing (loopback) objects
Common utilities for SPOPS::Secure and subclasses
Simple class implementing tied hash with some goodies
Enable field checking for SPOPS objects
Make a particular object create-only -- it cannot be updated
Embed the parameters for a DBI handle in object configuration
SPOPS::ClassFactory rule implementing autofield discovery
Load default values from a particular record
Support objects that automatically maintain a link to the previous and next objects
Convert dates to objects to/from your datastore
Embed the parameters for a LDAP handle in object configuration
Make a particular object read-only
Provide automatic UTF-8 conversion
Utility methods for SPOPS objects

Provides

in SPOPS/HashFile.pm