|
|
Choosing A Webhost: |
Re: GOODS Updating a Collection inside of a Dictionary node.: msg#00118lang.smalltalk.squeak.seaside
Hi Larry, > I've got GOODS installed and am tinkering with it. I have a usage > question. I've created a root as a Dictionary. With values as Ordered > Collections. Each Ordered Collection corresponds to a table in an > RDBMS, that I'm converting to Squeak. > Each item in the Collection is an array representing a tuple or row from > the table. My question is: how would I update an array item in the > Ordered Collection. Is there a better way, than > 1) retrieving the entire collection: db root at: 'foo' > 2) changing on of the items. someCollection at: x put: y > 3) writing the collection back to the dictionary. db root at: 'foo' > put: someCollection This is how I would do it, but step (3) shouldn't be necessary. You can say someCollection := db root at: 'foo'. someCollection at: x put: y. db commit. and the commit should pick up the new contents of the collection. Also, the GOODS client uses proxies that only load objects when needed, so step (1) should not be too expensive: it would probably load the collection's list of the objects that were in it, but not all of the objects themselves. Hope this helps, Ben Schroeder
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Seaside 2.5a2 for VW on the public store, Bany, Michel |
|---|---|
| Next by Date: | Re: GOODS Updating a Collection inside of a Dictionary node., ld |
| Previous by Thread: | GOODS Updating a Collection inside of a Dictionary node., ld |
| Next by Thread: | Re: GOODS Updating a Collection inside of a Dictionary node., ld |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |