On 10/20/06 3:05 PM, Ask Bjørn Hansen wrote: > We (well, Graham) made the following manager class that gives us > "fetch" and "fetch_or_create" methods to shorten the ->new(...)->load > stuff and to factor out the speculative option logic.
On the object side of things (as opposed to the Manager) keep min mind that there are helper methods available for some of this stuff. Take a look at load_or_insert(), load_speculative(), insert_or_update(), etc. All can be imported into your common object base class under any names that suit you. http://search.cpan.org/dist/Rose-DB-Object/lib/Rose/DB/Object/Helpers.pm -John ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object