Java Reference
In-Depth Information
Listing 8.5. The findProductById method with all the required ceremony
As with so many things in Java, the best thing you can say about this code is that eventually
you get used to it. All that's being done here is to execute a select statement with a
where clause including the necessary product ID and converting the returned database
row into a Product object. Everything else is ceremony.
I could go on to show the remaining implementation methods, but suffice it to say that the
details are equally buried. See the topic source code for details.
Search WWH ::




Custom Search