|
From: Bruce M. <br...@mc...> - 2003-04-04 02:51:47
|
On Thursday 03 April 2003 06:00 pm, ek...@ba... wrote: > Bruce, > > Is the SqlConfig.setString( ) ever called from anywhere except > SqlConfigService? If not, I would like to remove the first line of > SqlConfig.setString( ), which is: SqlConfig.setService calls SqlConfigService.setString - this method then deletes the existing value and then writes a new value. It then updates the hashmap of name/value with the new key. > service.setString(this.getName(), name, value); > > which gets called from SqlConfigService.getConfig( ) to update the > internal hashmap with the value read from the database. To include the > line above means that immediately after reading the key/value from the > database, it will go back to SqlConfigService and call setString( ), which > will delete the same row and then re-insert the row. Agreed? Not sure what the problem here is? > Erik |