|
Looks like I picked a bad time to lose my
internet connection… Although I respect the concept, I just can’t
agree with updating an entire row for the sake of one value. That feels
like more of an “acceptable flaw”, than a loss of granularity due
to OO. The granularity can and should exist, as long as it is
properly encapsulated. Also, when it comes to data integrity, something
doesn’t feel right about modifying data purely for simplicity’s
sake. Although most don’t allow this to be problematic, the simple
act of updating data is far more error-prone than not modifying it in the first
place. If a value doesn’t have to be changed, it shouldn’t be.
In an effort to maintain the granularity while
also conforming to DRY, maybe we can take a different approach. Rather
than implement partial updates via field lists, maybe it can be done based on
the record object. When the record object is created, the values are
defaulted to 0, “”, etc. If we were to instead default those
values to nulls ( see: http://www.franciswscott.com/blog/1/2005/06/Faking-a-null-value.cfm
), we could then modify the update to only change values that were not “null”.
This allows for partial updates and does not require the project code to change
at all. project = project.load(projectId=projectId)
Thoughts? Thanks, Chris From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Rawlinson what you say makes sense
Joe. I honestly wasn't thinking of it purely in the scope of a bean
utility specifically; partly becuase I haven't really had much opportunity to
focus on just using a framework On 2/9/06, Joe
Rinehart <[EMAIL PROTECTED]>
wrote: Hey Bill,
|
- Reactor For CF Update single value Chris Terrebonne
- RE: Reactor For CF Update single value Doug Hughes
- RE: Reactor For CF Update single value Chris Terrebonne
- RE: Reactor For CF Update single value Doug Hughes
- Re: Reactor For CF Update single value Jared Rypka-Hauer
- Re: Reactor For CF Update single value Joe Rinehart
- Re: Reactor For CF Update single value Bill Rawlinson
- Re: Reactor For CF Update single value Joe Rinehart
- RE: Reactor For CF Update single value Doug Hughes
- Re: Reactor For CF Update single value Bill Rawlinson
- RE: Reactor For CF Update single ... Chris Terrebonne
- Re: Reactor For CF Update single value Jared Rypka-Hauer
- Re: Reactor For CF Update single value Jared Rypka-Hauer
- RE: Reactor For CF Update single value Doug Hughes
- Re: Reactor For CF Update single value Seth Petry-Johnson

