IBM Version 5 manual Using datasource with SQLToXML and XMLToSQL class, Customer Registration form

Models: Version 5

1 340
Download 340 pages 15.44 Kb
Page 293
Image 293

Bring back the data

Query

Button

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).

Chapter 11. Light weight XML-based Enterprise Application 277

Page 293
Image 293
IBM Version 5 manual Using datasource with SQLToXML and XMLToSQL class, Customer Registration form