The Getting Started With Derby Sample Programs

The programs in this directory are described in the the Getting Started With Derby manual. Please see this document for more information.

These are utility methods used by the Getting Started With Derby programs that are not described in the document. The processing performed by these methods does not demonstrate basic JDBC processing and so is outside the scope of an introductory document like Getting Started With Derby. These methods provide environment validation and manage user input so the program is more robust. The code is provided here for people interested in examining the processing. It contains three methods:
  1. getWishItem - Prompts for user input and returns the entered text, if any, to the calling program. Handles I/O Exceptions and insists that some text is entered.
  2. wwdChk4Table - Checks if the table needed by the program already exists and is defined properly. Handles certain errors that could occur.
  3. main - Allows standalone testing of the getWishItem method.