We are pleased to announce that ReStore 1.20 is now
available - this is fully Dolphin 5.0 XP compatible.
Below is a summary of new features - please see the Developer's Manual for further details.
You may now address a large collection, referenced by a persistent object, in the same way as an 'instancesOf:' collection - this can make your applications more efficient by reducing the amount of data transferred from the database into memory. Two new methods - remote and orRemote control this behaviour, e.g.
"Look for a customer's specific order
without bringing every order into memory"
"Use the in-memory orders collection
if already referenced, otherwise query the database"
ReStore 1.20 adds a powerful new querying mechanism. In addition to block-based instancesOf: querying, you can additionally query by building up a template object and requesting similar instances. The following are equivalent:
(aReStore instancesOf: Person)
p := Person new.
Manual Transaction Management
ReStore's begin/commit transaction mechanism offers useful support for modal-style screens. However having a single 'active' transaction is not usually compatible with a set of diverse mode-less screens. ReStore now offers the facility to manually select which objects to commit, better supporting mode-less screens, through the new messages commitObjects: and rollbackObjects:
Support for sorting has been improved. When defining a SortedCollection you can now directly use regular Smalltalk-style query blocks. Additionally, instancesOf: collections can be automatically transformed to a SortedCollection. In both cases, the sorting is done directly by the database
define: #orders as: ((SortedCollection sortBlock: [ :a :b | a orderDate > b orderDate]) of: Order)
(aReStore instancesOf: Person) asSortedCollection: [ :a :b | a surname <= b surname]
The SQL generated by ReStore can now be automatically logged to the Transcript, or any other Stream-like object (e.g. a File)
A number of smaller enhancements and bug fixes are included in the release. Full details
© 2003 Solutions Software Ltd.