Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Listing 26.6 shows a slightly more complex variation on the FilmSearchCFC component created in Listing 26.1. The idea behind this CFC is to provide not only a search facility, but also a way to get and display detailed information about films. To reflect this expanded role, I’ll call this version FilmDataCFC1 instead of FilmSearchCFC.
In addition to the listFilms() method, Listing 26.6 also includes a new method, getFilmData(), which takes a film’s ID number as input and returns a structure containing the film’s title, summary, and actors. You can think of this CFC as a collection of conceptually related functions, since both methods are about data retrieval pertaining to records in the Films database table. In a big-picture way, this is what many CFCs are all about: collecting related functionality into a single bundle.