|
|
Choosing A Webhost: |
Re: quick sanity check on hooking up params::validate to cdbi subclasses.: msg#00310lang.perl.modules.class-dbi
Perrin Harkins writes: > George Hartzell wrote: > > I think that I'd like to use params::validate to check up on values > > used to create my class::dbi based objects. > > > > Seems like the right thing to do is override sub create {} in my > > subclasses, and if things validate then just call SUPER::create. > > > > Does that seem reasonable? > > Yes, I do this exact thing with Params::Validate in my Class::DBI classes. Do you also use before_set_COLUMN hooks to get at updates? Is there a particular reason that you override create instead of using combinations of before_set_COL and create hooks? g.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: quick sanity check on hooking up params::validate to cdbi subclasses., Perrin Harkins |
|---|---|
| Next by Date: | loging class, tom . kirkpatrick-ogcbQ2Xsj/BWk0Htik3J/w |
| Previous by Thread: | Re: quick sanity check on hooking up params::validate to cdbi subclasses., Perrin Harkins |
| Next by Thread: | Re: quick sanity check on hooking up params::validate to cdbi subclasses., Perrin Harkins |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |