Title:
Bug 82514:(Watson Migration Closure)Improve implementation of implicit methods for struct-based collectionsPlease allow the generated add(), remove() and das() methods that are generated for struct-based collections to have an object pa
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Bob Silverberg / Bob Silverberg (Bob Silverberg)
Created: 03/25/2010
Components: ORM Support
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 6
Problem:
Improve implementation of implicit methods for struct-based collectionsPlease allow the generated add(), remove() and das() methods that are generated for struct-based collections to have an object passed into them, rather than a key. Currently the has() method expects a key, the remove() method expects a key and the add() method requires both a key and an object. It should be possible, using metadata that CF knows about, to allow these methods to function with an object being passed in rather than the key. This will also allow developers to program to an interface rather than an implementation.To support backwards compatibility, the current method signatures could continue to work, and just add the ability to pass only an object as well.
Method:
More discussion, including sample code can be found at the URL listed below.
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041214
External Customer Info:
External Company:
External Customer Name: Bob Silverberg
External Customer Email: 5AD606C248A4C7F0992015A9
External Test Config: 03/25/2010
Attachments:
Comments: