May 262007
Recordset: Create Iterating Domain Objects via Inheritance
Composition , Iterator , Inheritance , ColdFusion 1 Comment »
Now bundled with its distant cousin, the composite Iterator, Recordset provides methods and properties for list traversal via inheritance. Recordset is not a query, but rather a query that is converted to an array of structs. Extending Recordset is useful as an alternative to maintaining an array of objects, or if you want to display a list with calculated fields (an employee has
a startdate, but display format is "years of service").
Recent Comments