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 List-Archive: http://lists.mysql.com/commits/252 Message-Id: <200512191413.jBJEDZsO016273@docsrva.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 @@ Registering Output Parameters -import java.sql.Types; - + +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); - -... - +cStmt.registerOutParameter("inOutParam", Types.INTEGER); +... + + 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 @@ Registering Output Parameters -import java.sql.Types; - + +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); - -... - +cStmt.registerOutParameter("inOutParam", Types.INTEGER); +... + + 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 @@ Registering Output Parameters -import java.sql.Types; - + +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); +... + - // - // 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); - -... -