Many of you may scoff at this, but it just popped into my head, and
seems nifty , so I thought I'd share.
What if there were a
__PACKAGE__->meta->default_where
that held certain attributes that should be incorporated into all
selects, either through the load() or manager get() or with|
require_objects -- unless overridden in them
i thought of it, because i use boolean flags to handle a lot of
public facing things on my system.
as an example, in a system i have, no deletes are immediate, deletes
are just bool flags + a deletion queue entry / timestemp, that waits
for a month before actual deletion.
so 95% of my selects on the public side include 'is_deleted= FALSE"
right now I handle that manually , and its rather redundant in my code.
i was thinking that if enough other people do stuff like that, it
could be worth me attempting a patch.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object