16 Aug 2010 16:46:43 UTC
- Distribution: Class-Scaffold
- Module version: 1.102280
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (2)
- Testers (502 / 2 / 0)
- KwaliteeBus factor: 0
- 77.26% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (42.19KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMARCEL Marcel Grünauerand 4 contributors
- Florian Helmberger
- Achim Adam
- Mark Hofstetter
- Heinz Ekker
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- BUGS AND LIMITATIONS
- COPYRIGHT AND LICENSE
Class::Scaffold::BusinessObject - Base class for framework business objects
This method will be called with an instruction container object and is expected to apply the instructions contained therein to the business object. In this base class the method does nothing; subclasses will implement it.
Checks that the business object defines a key. If it does not, an exception is raised.
This method is given an exception container, which it fills with exceptions that arise from checking. Since we're dealing exclusively with value objects, we can check for valid characters, field lengths, some wellformedness and validity (in case of email value objects, for example), all from within the business objects themselves. By moving part of the checking code into the objects themselves we make the policy stage more generic. Other registries can simply define business objects in terms of different value objects.
If the business object has a defined key, it will be updated, otherwise it will be stored. The business object will have a key when it has been stored or originally read from the storage. New business objects that haven't been stored yet won't have a key, so they will be inserted.
Returns a value pair where the first value is the object type and the second value is the business object's key.
FIXME: This method is used in conjunction with keywords in Registry-Core and might be better placed in that distribution.
See perlmodinstall for information and options on installing Perl modules.
No bugs have been reported.
Please report any bugs or feature requests through the web interface at http://rt.cpan.org.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see http://search.cpan.org/dist/Class-Scaffold/.
The development version lives at http://github.com/hanekomu/Class-Scaffold/. Instead of sending patches, please fork this project using the standard git and github infrastructure.
Marcel Gruenauer <firstname.lastname@example.org>
Florian Helmberger <email@example.com>
Achim Adam <firstname.lastname@example.org>
Mark Hofstetter <email@example.com>
Heinz Ekker <firstname.lastname@example.org>
This software is copyright (c) 2008 by Marcel Gruenauer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Class::Scaffold, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Class::Scaffold
For more information on module installation, please visit the detailed CPAN module installation guide.