| Author |
Update method
|
Dalibor Kalna
Greenhorn
Joined: Sep 17, 2004
Posts: 8
|
|
Hi all, in my update method I'm concerned only about owner. That means I skip all fields in record beeing updated and I stop in front of owner field. Then I perform write. Is that right ? Could I ignore the other stuff completely ? This would be minimalistic but sufficient. Thanks Dalibor
|
SCJP, SCJD in progress, SCWCD, SCBCD, SCSA, WMCID
|
 |
Anton Golovin
Ranch Hand
Joined: Jul 02, 2004
Posts: 473
|
|
Originally posted by Dalibor Kalna: Hi all, in my update method I'm concerned only about owner. That means I skip all fields in record beeing updated and I stop in front of owner field. Then I perform write. Is that right ? Could I ignore the other stuff completely ? This would be minimalistic but sufficient. Thanks Dalibor
It is up to you. If you ignore the other stuff, you would need to check it in your business logic by going lock-read-check-update-unlock.
|
Anton Golovin<br /><i>anton.golovin@gmail.com</i><br />SCJP, SCJD, SCBCD, SCWCD
|
 |
mike acre
Ranch Hand
Joined: Sep 23, 2003
Posts: 197
|
|
I think you maybe talking cross-purposes. I understood the question to mean "Can I ignore implementing update on all fields except customer" If this is the question I would say this is a mistake. I would implement the database tier completely for all methods and make them totally agnostic of the business logic. Your update should be able to update all fields and only care that the max field lengths are adhered to. I don't really see that your suggested approach is defendable at all. Unless I misunderstand you.
|
SCJP 1.4, SCJD
|
 |
 |
|
|
subject: Update method
|
|
|