The programs in this directory are described in the the Getting Started With Derby manual. Please see this document for more information.
A very basic JDBC program that uses Derby. This is the primary program example used in the JDBC sections of Getting Started With Derby. It is described in detail in that manual.
This is an example of what the WwdClient.java
program created as part
of one of the Getting Started With Derby activities will look like. A working copy of that code
is provided here for people interested in examining the code without performing
the edits described in the activity.
These are utility methods used by the Getting Started With Derby programs that are not described in the manual. The processing performed by these methods does not demonstrate basic JDBC processing and so is outside the scope of an introductory manual 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:
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.
wwdChk4Table
- Checks if the table needed by the program already exists
and is defined properly. Handles certain errors that could occur.
main
- Allows standalone testing of the
getWishItem
method.