List:Commits« Previous MessageNext Message »
From:stefan Date:December 19 2005 2:13pm
Subject:svn commit - mysqldoc@docsrva: r593 - in trunk: refman-4.1 refman-5.0 refman-5.1
View as plain text  
Author: shinz
Date: 2005-12-19 15:13:35 +0100 (Mon, 19 Dec 2005)
New Revision: 593

Log:
Edit JDBC example according to Tim's instructions (thanks\!)

Modified:
   trunk/refman-4.1/connector-j.xml
   trunk/refman-5.0/connector-j.xml
   trunk/refman-5.1/connector-j.xml

Modified: trunk/refman-4.1/connector-j.xml
===================================================================
--- trunk/refman-4.1/connector-j.xml	2005-12-19 06:12:29 UTC (rev 592)
+++ trunk/refman-4.1/connector-j.xml	2005-12-19 14:13:35 UTC (rev 593)
@@ -432,53 +432,41 @@
 
               <title>Registering Output Parameters</title>
 
-<programlisting>import java.sql.Types;
-
+<programlisting>
+import java.sql.Types;
 ...
-    //
-    // Connector/J supports both named and indexed
-    // output parameters. You can register output
-    // parameters using either method, as well
-    // as retrieve output parameters using either
-    // method, regardless of what method was
-    // used to register them.
-    //
-    // The following examples show how to use
-    // the various methods of registering
-    // output parameters (you should of course
-    // use only one registration per parameter).
-    //
+//
+// Connector/J supports both named and indexed
+// output parameters. You can register output
+// parameters using either method, as well
+// as retrieve output parameters using either
+// method, regardless of what method was
+// used to register them.
+//
+// The following examples show how to use
+// the various methods of registering
+// output parameters (you should of course
+// use only one registration per parameter).
+//
 
-    //
-    // Registers the second parameter as output
-    //
+//
+// Registers the second parameter as output, and
+// uses the type 'INTEGER' for values returned from
+// getObject()
+//
 
-    cStmt.registerOutParameter(2, Types.INTEGER);
+cStmt.registerOutParameter(2, Types.INTEGER);
 
-    //
-    // Registers the second parameter as output, and
-    // uses the type 'INTEGER' for values returned from
-    // getObject()
-    //
+//
+// Registers the named parameter 'inOutParam', and
+// uses the type 'INTEGER' for values returned from
+// getObject()
+//
 
-    cStmt.registerOutParameter(2, Types.INTEGER);
-
-    //
-    // Registers the named parameter 'inOutParam'
-    //
-
-    cStmt.registerOutParameter("inOutParam");
-
-    //
-    // Registers the named parameter 'inOutParam', and
-    // uses the type 'INTEGER' for values returned from
-    // getObject()
-    //
-
-    cStmt.registerOutParameter("inOutParam", Types.INTEGER);
-
-...</programlisting>
-
+cStmt.registerOutParameter("inOutParam", Types.INTEGER);
+...
+</programlisting>
+              
             </example>
           </para>
         </listitem>

Modified: trunk/refman-5.0/connector-j.xml
===================================================================
--- trunk/refman-5.0/connector-j.xml	2005-12-19 06:12:29 UTC (rev 592)
+++ trunk/refman-5.0/connector-j.xml	2005-12-19 14:13:35 UTC (rev 593)
@@ -432,53 +432,41 @@
 
               <title>Registering Output Parameters</title>
 
-<programlisting>import java.sql.Types;
-
+<programlisting>
+import java.sql.Types;
 ...
-    //
-    // Connector/J supports both named and indexed
-    // output parameters. You can register output
-    // parameters using either method, as well
-    // as retrieve output parameters using either
-    // method, regardless of what method was
-    // used to register them.
-    //
-    // The following examples show how to use
-    // the various methods of registering
-    // output parameters (you should of course
-    // use only one registration per parameter).
-    //
+//
+// Connector/J supports both named and indexed
+// output parameters. You can register output
+// parameters using either method, as well
+// as retrieve output parameters using either
+// method, regardless of what method was
+// used to register them.
+//
+// The following examples show how to use
+// the various methods of registering
+// output parameters (you should of course
+// use only one registration per parameter).
+//
 
-    //
-    // Registers the second parameter as output
-    //
+//
+// Registers the second parameter as output, and
+// uses the type 'INTEGER' for values returned from
+// getObject()
+//
 
-    cStmt.registerOutParameter(2, Types.INTEGER);
+cStmt.registerOutParameter(2, Types.INTEGER);
 
-    //
-    // Registers the second parameter as output, and
-    // uses the type 'INTEGER' for values returned from
-    // getObject()
-    //
+//
+// Registers the named parameter 'inOutParam', and
+// uses the type 'INTEGER' for values returned from
+// getObject()
+//
 
-    cStmt.registerOutParameter(2, Types.INTEGER);
-
-    //
-    // Registers the named parameter 'inOutParam'
-    //
-
-    cStmt.registerOutParameter("inOutParam");
-
-    //
-    // Registers the named parameter 'inOutParam', and
-    // uses the type 'INTEGER' for values returned from
-    // getObject()
-    //
-
-    cStmt.registerOutParameter("inOutParam", Types.INTEGER);
-
-...</programlisting>
-
+cStmt.registerOutParameter("inOutParam", Types.INTEGER);
+...
+</programlisting>
+              
             </example>
           </para>
         </listitem>

Modified: trunk/refman-5.1/connector-j.xml
===================================================================
--- trunk/refman-5.1/connector-j.xml	2005-12-19 06:12:29 UTC (rev 592)
+++ trunk/refman-5.1/connector-j.xml	2005-12-19 14:13:35 UTC (rev 593)
@@ -432,53 +432,41 @@
 
               <title>Registering Output Parameters</title>
 
-<programlisting>import java.sql.Types;
-
+<programlisting>
+import java.sql.Types;
 ...
-    //
-    // Connector/J supports both named and indexed
-    // output parameters. You can register output
-    // parameters using either method, as well
-    // as retrieve output parameters using either
-    // method, regardless of what method was
-    // used to register them.
-    //
-    // The following examples show how to use
-    // the various methods of registering
-    // output parameters (you should of course
-    // use only one registration per parameter).
-    //
+//
+// Connector/J supports both named and indexed
+// output parameters. You can register output
+// parameters using either method, as well
+// as retrieve output parameters using either
+// method, regardless of what method was
+// used to register them.
+//
+// The following examples show how to use
+// the various methods of registering
+// output parameters (you should of course
+// use only one registration per parameter).
+//
 
-    //
-    // Registers the second parameter as output
-    //
+//
+// Registers the second parameter as output, and
+// uses the type 'INTEGER' for values returned from
+// getObject()
+//
 
-    cStmt.registerOutParameter(2, Types.INTEGER);
+cStmt.registerOutParameter(2, Types.INTEGER);
 
-    //
-    // Registers the second parameter as output, and
-    // uses the type 'INTEGER' for values returned from
-    // getObject()
-    //
+//
+// Registers the named parameter 'inOutParam', and
+// uses the type 'INTEGER' for values returned from
+// getObject()
+//
 
-    cStmt.registerOutParameter(2, Types.INTEGER);
+cStmt.registerOutParameter("inOutParam", Types.INTEGER);
+...
+</programlisting>
 
-    //
-    // Registers the named parameter 'inOutParam'
-    //
-
-    cStmt.registerOutParameter("inOutParam");
-
-    //
-    // Registers the named parameter 'inOutParam', and
-    // uses the type 'INTEGER' for values returned from
-    // getObject()
-    //
-
-    cStmt.registerOutParameter("inOutParam", Types.INTEGER);
-
-...</programlisting>
-
             </example>
           </para>
         </listitem>

Thread
svn commit - mysqldoc@docsrva: r593 - in trunk: refman-4.1 refman-5.0 refman-5.1stefan19 Dec