<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Talking to MySQL: Your First Look at JDBC</title>
	<atom:link href="http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/</link>
	<description></description>
	<pubDate>Tue, 14 Oct 2008 00:31:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: aparna_grk</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-11671</link>
		<dc:creator>aparna_grk</dc:creator>
		<pubDate>Thu, 08 Dec 2005 13:00:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-11671</guid>
		<description>hi, in this code, can u telme how i cant display both the id and the item?
The ‘System.out.print.ln(”—” + it.next());’ display only the String Item, since it calls the 'toString()' method. But how can one also return the int id value.?
Kindly guide.
thanks</description>
		<content:encoded><![CDATA[<p>hi, in this code, can u telme how i cant display both the id and the item?<br />
The ‘System.out.print.ln(”—” + it.next());’ display only the String Item, since it calls the &#8216;toString()&#8217; method. But how can one also return the int id value.?<br />
Kindly guide.<br />
thanks</p>]]></content:encoded>
	</item>
	<item>
		<title>By: vgarcia</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4467</link>
		<dc:creator>vgarcia</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4467</guid>
		<description>&lt;p&gt;Cool stuff Kev. Looking forward to more in the series.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Cool stuff Kev. Looking forward to more in the series.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Angus Rose</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4468</link>
		<dc:creator>Angus Rose</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4468</guid>
		<description>&lt;p&gt;Excellent tutorial. The only thing I'd add is a finally block for each method that uses a connection object e.g.&lt;/p&gt;

&lt;p&gt;finally&lt;br /&gt;
	  {&lt;br /&gt;
	      	try{&lt;br /&gt;
	      		&lt;br /&gt;
	      		conn.close();&lt;br /&gt;
	      		conn = null;&lt;br /&gt;
	      	&lt;br /&gt;
	      	}catch(SQLException sqle){&lt;br /&gt;
	      		System.err.println("DatabaseConnector.deleteItem(int id)");&lt;br /&gt;
	      		System.err.println(&lt;br /&gt;
	      	            "Error closing database connection:\n" +&lt;br /&gt;
	      	             sqle.getMessage());&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;/p&gt;

&lt;p&gt;It just frees up an unused resource - the connection object in this case.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Excellent tutorial. The only thing I&#8217;d add is a finally block for each method that uses a connection object e.g.</p>
<p>finally<br />
	  {<br />
	      	try{</p>
<p>	      		conn.close();<br />
	      		conn = null;</p>
<p>	      	}catch(SQLException sqle){<br />
	      		System.err.println(&#8221;DatabaseConnector.deleteItem(int id)&#8221;);<br />
	      		System.err.println(<br />
	      	            &#8220;Error closing database connection:\n&#8221; +<br />
	      	             sqle.getMessage());<br />
			}<br />
		}</p>
<p>It just frees up an unused resource - the connection object in this case.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: gesf</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4469</link>
		<dc:creator>gesf</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4469</guid>
		<description>&lt;p&gt;A very interesting article...!&lt;br /&gt;
Thanks for sharing your knowledge with us Kevin ;)&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>A very interesting article&#8230;!<br />
Thanks for sharing your knowledge with us Kevin ;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Yank</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4470</link>
		<dc:creator>Kevin Yank</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4470</guid>
		<description>&lt;p&gt;Angus, opening and closing database connections is a time-consuming process, which is why the class caches the connection, keeping it open between method calls. When the object is garbage collected, the connection will be closed on its own. The application will use a bit more memory keeping that connection open, yes, but the performance boost is worth it.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Angus, opening and closing database connections is a time-consuming process, which is why the class caches the connection, keeping it open between method calls. When the object is garbage collected, the connection will be closed on its own. The application will use a bit more memory keeping that connection open, yes, but the performance boost is worth it.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: asp_funda</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4471</link>
		<dc:creator>asp_funda</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4471</guid>
		<description>&lt;p&gt;Absolutely spiffing Kev, nothing less was expected. :D&lt;br /&gt;
Its nice being back, sipping Java!! ;)&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Absolutely spiffing Kev, nothing less was expected. :D<br />
Its nice being back, sipping Java!! ;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ed.j</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4472</link>
		<dc:creator>ed.j</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4472</guid>
		<description>&lt;p&gt;Most excellent.  Up to this point I understood everything, except why only the string of the object was printed ...  I had a friend explain to me that the line 'System.out.print.ln(" - " + it.next());' assumes, i.e. 'calls' the 'toString()' method of the object.&lt;br /&gt;
Very good tutorial so far!  I cut my teeth on your PHP/MySQL book years ago, and I haven't looked back ...&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Most excellent.  Up to this point I understood everything, except why only the string of the object was printed &#8230;  I had a friend explain to me that the line &#8216;System.out.print.ln(&#8221; - &#8221; + it.next());&#8217; assumes, i.e. &#8216;calls&#8217; the &#8216;toString()&#8217; method of the object.<br />
Very good tutorial so far!  I cut my teeth on your PHP/MySQL book years ago, and I haven&#8217;t looked back &#8230;</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4473</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4473</guid>
		<description>&lt;p&gt;To get the test driver to run, I had to change the semi-colon to a colon:&lt;/p&gt;

&lt;p&gt;java -classpath .:mysql-connector-java-3.0.15-ga-bin.jar com.sitepoint.ToDoTest&lt;/p&gt;

&lt;p&gt;Otherwise, java said that it could not find com/sitepoint/ToDoTest.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>To get the test driver to run, I had to change the semi-colon to a colon:</p>
<p>java -classpath .:mysql-connector-java-3.0.15-ga-bin.jar com.sitepoint.ToDoTest</p>
<p>Otherwise, java said that it could not find com/sitepoint/ToDoTest.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.sitepoint.com/blogs/2004/10/29/talking-to-mysql-your-first-look-at-jdbc/#comment-4474</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-4474</guid>
		<description>&lt;p&gt;is there any place to get the schema and data for the todolist tables-a sql file??&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>is there any place to get the schema and data for the todolist tables-a sql file??</p>]]></content:encoded>
	</item>
</channel>
</rss>
