IBM Version 5 Universal Remote User Manual


 
Chapter 11. Light weight XML-based Enterprise Application 277
Figure 11-9 Customer Registration form
11.3.6 Using datasource with SQLToXML and XMLToSQL class
Since SQLToXML and XMLToSQL were developed as a part of wizard, they were
not designed to accept the datasource. To use with datasource and the
connection pooling, we can use set/getConnection methods, and once the
connection has been set to the class, it will not try to connect to the database
itself. So, we extended both classes to support the datasource. The new classes
inherit the original class, so new classes can use all functions of the originals
(Figure 11-10).
Bring back
the data
Query
Button