Appendix C. DATABASES AND DATABASE WRAPPER UTILITY

This book uses several examples that use a database in the business logic. This database access is provided through the Java Database-Open Database Connectivity (JDBC-ODBC) bridge. The Data Source Name (DSN) entries required for this are explained in Appendix B. The database access logic required in all these examples is similar and is packaged separately in the DatabaseWrapper class. This class is in the Shared directory.

The constructor for this class requires three parameters — the DSN name, as registered with the operating system, user name, and password. Both the user name and the password for all the databases in the book are set to null.

DatabaseWrapper.java
 public DatabaseWrapper(String ...

Get Web Services: A Java™ Developer’s Guide Using E-Speak now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.