Debian Codegraph @

java/demo/workingwithderby/readme.html

raw symbols SCIP
1 <!--
2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to you under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 -->
17 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
18 <HTML lang="en">
19 <HEAD>
20 <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
21 <META http-equiv="Content-Style-Type" content="text/css">
22 <TITLE>Example Programs</TITLE>
23 <link rel="stylesheet" type="text/css" href="../csfull.css" title="sample">
24 </HEAD>
25 <BODY>
26
27 <H1>The Getting Started With Derby Sample Programs</H1>
28 <P>The programs in this directory are described in the the
29 <A href="../../../docs/html/getstart/index.html"><i>Getting Started With Derby</i></A>
30 manual. Please see this document for more information.</P>
31 <UL>
32 <LI>
33 <p class="BodyRelative">
34 <A href="WwdEmbedded.java" type="text/plain"><code>WwdEmbedded.java</code></A></p>
35 <p class="BodyRelative">A very basic JDBC program that uses Derby. This is
36 the primary program example used in the JDBC sections of <i>Getting Started With
37 Derby</i>. It is described in detail in that manual.</p>
38 </LI>
39 <LI><p class="BodyRelative">
40 <A href="WwdClientExample.java" type="text/plain"><code>WwdClientExample.java</code></A></p>
41 <p class="BodyRelative">This is an example of what the <code>WwdClient.java</code> program created as part
42 of one of the <i>Getting Started With Derby</i> activities will look like. A working copy of that code
43 is provided here for people interested in examining the code without performing
44 the edits described in the activity.</p></LI>
45 </UL>
46 <UL>
47 <LI><p class="BodyRelative"><A href="WwdUtils.java" type="text/plain"><code>WwdUtils.java</code></A></p>
48 <P class="BodyRelative">These are utility methods used by the <i>Getting Started With Derby</i> programs that
49 are not described in the manual. The processing performed by these methods
50 does not demonstrate basic JDBC processing and so is outside the scope
51 of an introductory manual like <i>Getting Started With Derby</i>. These methods provide
52 environment validation and manage user input so the program is more robust.
53 The code is provided here for people interested in examining the processing.
54 It contains three methods:</P>
55 <OL>
56 <LI><code>getWishItem</code> - Prompts for user input and returns the entered text, if any,
57 to the calling program. Handles I/O exceptions and insists that some text
58 is entered.
59 <LI><code>wwdChk4Table</code> - Checks if the table needed by the program already exists
60 and is defined properly. Handles certain errors that could occur.
61 <LI><code>main</code> - Allows standalone testing of the
62 <code>getWishItem</code> method.
63 </OL></LI>
64 </UL>
65
66 </BODY>
67 </HTML>