On 10/23/06 11:51 PM, Jonathan wrote:
> a) I wanted to make sure that not_found did what i thought it did
> ( according to source , it seems to )
> b) i have it doing that already.  it's just weird having a double
> negative... it seems odd that found isn't in there already

The success case is clear: you get a true return value back from load().
When there's a failure, depending on your error mode, you may need a way to
distinguish between a failure due to some unforeseen problem (network error,
database error, etc.) and an "expected" failure because a row simply isn't
in the database.  That's why there's not_found(), but no found().

-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