Introduction
Goals
This section describes the Java source code for the Fortune server, organized into the sections below:
- The Basics section provides a few Java and JDBC concepts to get you going with Derby.
- LoadFortune describes the JDBC program that loads fortunes into Derby.
- SQL Functions provides an overview of Derby support for stored procedures and SQL functions, then focuses on the SQL Functions that the Fortune Server uses.
Fortune Server Java/JDBC Source Code
The FORTUNE_HOME/java directory contains source code for the data loader and SQL functions:
LoadData/LoadFortune.java | Loads fortunes from cookie files into a Derby database. |
examples/tutorial/derby/DerbyRand.java | tutRand SQL function. |
examples/tutorial/derby/DerbyRegex.java | tutMatch and tutReplace SQL functions. |