db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r549263 - in /db/derby/docs/trunk/src/getstart: getstartderby.ditamap rwwdactivity3.dita twwdactivity3_Setup.dita twwdactivity4.dita
Date Wed, 20 Jun 2007 21:55:54 GMT
Author: myrnavl
Date: Wed Jun 20 14:55:53 2007
New Revision: 549263

URL: http://svn.apache.org/viewvc?view=rev&rev=549263
Log:
DERBY-2839: adjusting references to files in demo/workingwithderby

Modified:
    db/derby/docs/trunk/src/getstart/getstartderby.ditamap
    db/derby/docs/trunk/src/getstart/rwwdactivity3.dita
    db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita
    db/derby/docs/trunk/src/getstart/twwdactivity4.dita

Modified: db/derby/docs/trunk/src/getstart/getstartderby.ditamap
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/getstart/getstartderby.ditamap?view=diff&rev=549263&r1=549262&r2=549263
==============================================================================
--- db/derby/docs/trunk/src/getstart/getstartderby.ditamap (original)
+++ db/derby/docs/trunk/src/getstart/getstartderby.ditamap Wed Jun 20 14:55:53 2007
@@ -189,7 +189,7 @@
 </relrow>
 <relrow>
 <relcell>
-<topicref href="rwwdactivity3.dita" navtitle="The gsEmbedded program"></topicref>
+<topicref href="rwwdactivity3.dita" navtitle="The WwdEmbedded program"></topicref>
 </relcell>
 <relcell></relcell>
 </relrow>

Modified: db/derby/docs/trunk/src/getstart/rwwdactivity3.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/getstart/rwwdactivity3.dita?view=diff&rev=549263&r1=549262&r2=549263
==============================================================================
--- db/derby/docs/trunk/src/getstart/rwwdactivity3.dita (original)
+++ db/derby/docs/trunk/src/getstart/rwwdactivity3.dita Wed Jun 20 14:55:53 2007
@@ -19,12 +19,12 @@
 limitations under the License.
 -->
 <reference id="rwwdactivity3" xml:lang="en-us">
-<title>The gsEmbedded program</title>
-<shortdesc>This section describes the <codeph>gsEmbedded.java</codeph>
program,
+<title>The WwdEmbedded program</title>
+<shortdesc>This section describes the <codeph>WwdEmbedded.java</codeph>
program,
 highlighting details specific to accessing a <ph conref="../conrefs.dita#prod/productshortname"></ph>
database
 from a JDBC program.</shortdesc>
 <prolog><metadata>
-<keywords><indexterm>gsEmbedded.java program<indexterm>code description</indexterm><indexterm>org.apache.derby.jdbc.EmbeddedDriver</indexterm></indexterm>
+<keywords><indexterm>WwdEmbedded.java program<indexterm>code description</indexterm><indexterm>org.apache.derby.jdbc.EmbeddedDriver</indexterm></indexterm>
 <indexterm>Database<indexterm>shutdown</indexterm></indexterm><indexterm>JDBC</indexterm>
 <indexterm>SQLException</indexterm></keywords>
 </metadata></prolog>
@@ -34,15 +34,15 @@
 file and follow along in a text viewer or editor. The <cite>SECTION NAMES</cite>
referred
 to in this section can be found in the comments within the program code and
 serve as cross-reference points between this section and the Java program.
-The program uses methods from the <codeph>gsUtils</codeph> class. The utility
-class code is not described here but is available for review in the file <codeph>gsUtils.java</codeph>.</section>
+The program uses methods from the <codeph>WwdUtils</codeph> class. The utility
+class code is not described here but is available for review in the file <codeph>WwdUtils.java</codeph>.</section>
 <section><title>Initialize the program</title><p><cite>INITIALIZATION
SECTION</cite>:
 The initial lines of code identify the Java packages used in the program,
-then set up the Java class <codeph>gsEmbedded</codeph> and the <codeph>main</codeph>
method
+then set up the Java class <codeph>WwdEmbedded</codeph> and the <codeph>main</codeph>
method
 signature.  Refer to a Java programming guide for information on these program
 constructs.</p> <codeblock>import java.sql.*;
 
-public class gsEmbedded   
+public class WwdEmbedded   
 {
     public static void main(String[] args)
    {</codeblock> </section>
@@ -101,10 +101,10 @@
 <section><title>Set up program to execute SQL</title> <p><cite>INITIAL
SQL
 SECTION</cite>: The program initializes the objects needed to perform subsequent
 SQL operations and checks to see if the required data  table exists.</p> <p>The
-statement object <codeph>s</codeph> is initialized. If the utility method <codeph>gsUtils.gsChk4Table</codeph>
does
+statement object <codeph>s</codeph> is initialized. If the utility method <codeph>WwdUtils.wwdChk4Table</codeph>
does
 not find the <codeph>WISH_LIST</codeph> table, the statement object's  <codeph>execute</codeph>
method
 creates the table by executing the SQL stored  in the variable <codeph>createString</codeph>.</p>
<codeblock>s = conn.createStatement();
-if (! gsUtils.gsChk4Table(conn))
+if (! WwdUtils.wwdChk4Table(conn))
 {  
    System.out.println (" . . . . creating table WISH_LIST");
    s.execute(createString);
@@ -117,7 +117,7 @@
    ("insert into WISH_LIST(WISH_ITEM) values (?)");
 </codeblock></section>
 <section><title>Interact with the database</title> <p><cite>ADD
/ DISPLAY
-RECORD SECTION</cite>: This section uses the utility method <codeph>gsUtils.getWishItem</codeph>
to
+RECORD SECTION</cite>: This section uses the utility method <codeph>WwdUtils.getWishItem</codeph>
to
 gather information from the user. It then uses the objects set up previously
 to insert the data into the <codeph>WISH_LIST</codeph> table and then display
 all records. A standard <codeph>do</codeph> loop causes the program to repeat

Modified: db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita?view=diff&rev=549263&r1=549262&r2=549263
==============================================================================
--- db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita (original)
+++ db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita Wed Jun 20 14:55:53 2007
@@ -23,7 +23,7 @@
 <shortdesc>This activity loads the <ph conref="../conrefs.dita#prod/productshortname"></ph>
database
 engine using a simple Java JDBC program. </shortdesc>
 <prolog><metadata>
-<keywords><indexterm>gsEmbedded.java program<indexterm>running</indexterm></indexterm>
+<keywords><indexterm>WwdEmbedded.java program<indexterm>running</indexterm></indexterm>
 <indexterm>CLASSPATH environment variable</indexterm></keywords>
 </metadata></prolog>
 <taskbody>
@@ -39,7 +39,7 @@
 variable, to locate the binary files  (jar files and class files) that are
 needed to run  <ph conref="../conrefs.dita#prod/productshortname"></ph> and
 other Java  applications. Before performing this activity, you need to set
-the classpath and compile the <codeph>gsEmbedded.java</codeph> program.</p></context>
+the classpath and compile the <codeph>WwdEmbedded.java</codeph> program.</p></context>
 <steps>
 <step><cmd>Copy the program files into the <codeph>DERBYTUTOR</codeph>
directory
 and set the CLASSPATH environment variable.</cmd><stepxmp><simpletable relcolwidth="1*
3*">
@@ -65,18 +65,18 @@
 at the end of each command so that your current working directory is included
 in the classpath and the files are copied to the correct location. </note></stepxmp>
 </step>
-<step><cmd>Compile the <codeph>gsEmbedded.java</codeph> program.</cmd><stepxmp><codeblock><b><userinput>javac
gsEmbedded.java</userinput></b>
+<step><cmd>Compile the <codeph>WwdEmbedded.java</codeph> program.</cmd><stepxmp><codeblock><b><userinput>javac
WwdEmbedded.java</userinput></b>
 </codeblock> <note type="important">A command prompt appears if the compilation
-is successful. The binary file <codeph>gsEmbedded.class</codeph> is created.
+is successful. The binary file <codeph>WwdEmbedded.class</codeph> is created.
 If an error message appears, verify that the JDK is properly installed.</note> </stepxmp>
 </step>
-<step><cmd>Run the program.</cmd><info>The <xref href="rwwdactivity3.dita#rwwdactivity3"><codeph>gsEmbedded.java</codeph>
program</xref> populates
+<step><cmd>Run the program.</cmd><info>The <xref href="rwwdactivity3.dita#rwwdactivity3"><codeph>WwdEmbedded.java</codeph>
program</xref> populates
 a table with wish-list items. The program prompts you for text input (up to
 32 characters), stores the text input in a database table, and then lists
 the items stored in the table. The program continues to ask for wish-list
 items until the you type the command <codeph>exit</codeph> or a problem is
 encountered. Some basic information on program progress is displayed at the
-beginning and the end of  the program.</info><stepxmp> <codeblock><b><userinput>java
gsEmbedded</userinput></b>
+beginning and the end of  the program.</info><stepxmp> <codeblock><b><userinput>java
WwdEmbedded</userinput></b>
 <systemoutput>org.apache.derby.jdbc.EmbeddedDriver loaded.
 Connected to database jdbcDemoDB
  . . . . creating table WISH_LIST

Modified: db/derby/docs/trunk/src/getstart/twwdactivity4.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/getstart/twwdactivity4.dita?view=diff&rev=549263&r1=549262&r2=549263
==============================================================================
--- db/derby/docs/trunk/src/getstart/twwdactivity4.dita (original)
+++ db/derby/docs/trunk/src/getstart/twwdactivity4.dita Wed Jun 20 14:55:53 2007
@@ -26,54 +26,54 @@
  client/server implementation that uses the  <ph conref="../conrefs.dita#prod/productshortname"></ph>
Network
 Server. </shortdesc>
 <prolog><metadata>
-<keywords><indexterm>gsClient.java program<indexterm>org.apache.derby.jdbc.ClientDriver</indexterm></indexterm>
+<keywords><indexterm>WwdClient.java program<indexterm>org.apache.derby.jdbc.ClientDriver</indexterm></indexterm>
 </keywords>
 </metadata></prolog>
 <taskbody>
 <prereq>This activity assumes you have performed the preceding activities
 and have a working directory called <codeph>DERBYTUTOR</codeph>, and have
 copies of the program files from the <codeph>$<ph conref="../conrefs.dita#prod/productinstallpath"></ph>/demo/programs/workingwithderby/</codeph>

-directory. A basic knowledge of the <codeph>gsEmbedded.java</codeph> program
+directory. A basic knowledge of the <codeph>WwdEmbedded.java</codeph> program
 and experience starting and connecting to the Network Server are helpful.
-You will need to use a text editor to create the <codeph>gsClient.java</codeph>

+You will need to use a text editor to create the <codeph>WwdClient.java</codeph>

 program.</prereq>
 <context>You will create a <ph conref="../conrefs.dita#prod/productshortname"></ph>
client
-program,  <codeph>gsClient.java</codeph>, by changing a few lines of the  <codeph>gsEmbedded.java</codeph>
program.
+program,  <codeph>WwdClient.java</codeph>, by changing a few lines of the  <codeph>WwdEmbedded.java</codeph>
program.
 You can run the client program in multiple command shells, allowing simultaneous
 update from two or more sources. <p>You use two command windows (Server-Shell
 and Client-Shell) in this activity. You use the Server-Shell to start the <ph
 conref="../conrefs.dita#prod/productshortname"></ph> Network Server and  display
 Network Server messages. You use the Client-Shell to edit, compile and run
-the newly created <codeph>gsClient.java</codeph> program. You set the  <codeph>CLASSPATH</codeph>
environment
+the newly created <codeph>WwdClient.java</codeph> program. You set the  <codeph>CLASSPATH</codeph>
environment
 variable in the Client-Shell to support the client JDBC program.</p></context>
 <steps>
-<step><cmd>Create the <codeph>gsClient</codeph> program using the
following
+<step><cmd>Create the <codeph>WwdClient</codeph> program using the
following
  steps:</cmd>
 <substeps>
 <substep><cmd>Open a command window (Client-Shell).</cmd></substep>
 <substep><cmd>Change to the  <codeph>DERBYTUTOR</codeph> directory.</cmd>
 </substep>
-<substep><cmd>Make a copy of the <codeph>gsEmbedded.java</codeph>
program
-called <codeph>gsClient.java</codeph>.</cmd><stepxmp> <simpletable
relcolwidth="1* 3*">
+<substep><cmd>Make a copy of the <codeph>WwdEmbedded.java</codeph>
program
+called <codeph>WwdClient.java</codeph>.</cmd><stepxmp> <simpletable
relcolwidth="1* 3*">
 <sthead>
 <stentry>Operating System</stentry>
 <stentry>Command</stentry>
 </sthead>
 <strow>
 <stentry>UNIX (Korn Shell)</stentry>
-<stentry><codeblock><b><userinput>cp gsEmbedded.java gsClient.java</userinput></b></codeblock></stentry>
+<stentry><codeblock><b><userinput>cp WwdEmbedded.java WwdClient.java</userinput></b></codeblock></stentry>
 </strow>
 <strow>
 <stentry>Windows</stentry>
-<stentry><codeblock><b><userinput>copy gsEmbedded.java gsClient.java</userinput></b></codeblock></stentry>
+<stentry><codeblock><b><userinput>copy WwdEmbedded.java WwdClient.java</userinput></b></codeblock></stentry>
 </strow>
 </simpletable> </stepxmp></substep>
-<substep><cmd>Open the <codeph>gsClient.java</codeph> file in a text
editor
+<substep><cmd>Open the <codeph>WwdClient.java</codeph> file in a
text editor
 and update the class name to reflect the new file name:</cmd><stepxmp><codeblock><b>Original
declaration</b>
-     public class gsEmbedded
+     public class WwdEmbedded
 
 <b>New declaration</b>
-     public class <b>gsClient</b>
+     public class <b>WwdClient</b>
 </codeblock></stepxmp></substep>
 <substep><cmd>Edit the <cite>DEFINE VARIABLES SECTION</cite> of the
program
 so that the <codeph>driver</codeph> variable contains the name of the  <ph
@@ -89,9 +89,9 @@
      ...
      String connectionURL = <b>"jdbc:derby://localhost:1527/"</b> + dbName +
";create=true";
 </codeblock></stepxmp></substep>
-<substep><cmd>Compile the application.</cmd><stepxmp><codeblock><b><userinput>javac
gsClient.java</userinput></b>
+<substep><cmd>Compile the application.</cmd><stepxmp><codeblock><b><userinput>javac
WwdClient.java</userinput></b>
 </codeblock> </stepxmp><stepresult>A command prompt appears if the compilation
-is successful. The  binary file <codeph>gsClient.class</codeph> is created.
+is successful. The  binary file <codeph>WwdClient.class</codeph> is created.
 If an error message  appears, modify the line indicated so that it is identical
 to the example. </stepresult></substep>
 </substeps>
@@ -142,7 +142,7 @@
 </simpletable> <note type="important">Include the dot (<codeph>.</codeph>)
 at the end of the  command so that your current working directory is included
 in the classpath. </note> </stepxmp></substep>
-<substep><cmd>Run the program:</cmd><stepxmp> <codeblock><b><userinput>java
gsClient</userinput></b>
+<substep><cmd>Run the program:</cmd><stepxmp> <codeblock><b><userinput>java
WwdClient</userinput></b>
 <systemoutput>org.apache.derby.jdbc.ClientDriver loaded.
 Connected to database jdbcDemoDB
 Enter wish-list item (enter exit to end):</systemoutput>
@@ -207,7 +207,7 @@
 command windows and perform the substeps of the "Run the client program" step
 in  each window. Both clients will operate without a problem. In contrast,
 it would  not be possible for a program that uses the embedded driver (for
-example, <codeph>gsEmbedded.java</codeph>) to access the database until the
+example, <codeph>WwdEmbedded.java</codeph>) to access the database until the
 database or the Network Server is shut down.</p><p>You may have noticed that
 the client program does not shut down the database. This is because the database
 is a shared resource in a client/server environment and, in most cases, should



Mime
View raw message