On 10/14/06 8:35 PM, Ask Bjørn Hansen wrote:
> We are setting some other defaults with something like
> 
>    package My::DB::Object::Metadata::Base;
>    use base qw(Rose::DB::Object::Metadata);
> 
>    sub new {
>      shift->SUPER::new(
>        default_update_changes_only => 1,
>        default_insert_changes_only => 1,
>        [....]
>        @_
>      );
>    }

Just FYI, this type of thing is more typically done in init() (which is
called from new()).  Not that it really makes much difference in the end,
but init() is where all the params passed through new() are actually dealt
with, so it only makes sense to set default values and such there.

Anyway, there's no metadata class for Managers and there's no Manager object
to set attributes on.  I could put these options in the object class meta I
suppose, but I'll still probably want to add a parameter to change the
behavior on a per-call basis.

> I'm not sure what it should be called.    In a way it's a little like
> the mysql command line client option "safe-updates".

Hm, I was thinking more along the lines of allow_empty_lists or something.

-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

Reply via email to