<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Statement vs PreparedStatement</title>
	<atom:link href="http://www.fabiofalcinelli.it/2009/01/statement-vs-preparedstatement/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fabiofalcinelli.it/2009/01/statement-vs-preparedstatement/</link>
	<description>Interessi e appunti</description>
	<lastBuildDate>Sat, 14 Jan 2012 19:55:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Fabio</title>
		<link>http://www.fabiofalcinelli.it/2009/01/statement-vs-preparedstatement/comment-page-1/#comment-183</link>
		<dc:creator>Fabio</dc:creator>
		<pubDate>Sat, 11 Dec 2010 11:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://fabiofalcinelli.netsons.org/?p=114#comment-183</guid>
		<description>Si, ora non so se dipenda dal particolare driver che uso di solito (hsqldb), ma l&#039;output che genera è un po&#039; più verboso, del tipo:

org.hsqldb.jdbc.jdbcPreparedStatement@37bd2664[sql=[select * from TABELLA where 1=?], parameters=[[1]]]

Però certamente è il modo corretto di farne il debug e non è nulla di particolarmente preoccupante :-)</description>
		<content:encoded><![CDATA[<p>Si, ora non so se dipenda dal particolare driver che uso di solito (hsqldb), ma l&#8217;output che genera è un po&#8217; più verboso, del tipo:</p>
<p>org.hsqldb.jdbc.jdbcPreparedStatement@37bd2664[sql=[select * from TABELLA where 1=?], parameters=[[1]]]</p>
<p>Però certamente è il modo corretto di farne il debug e non è nulla di particolarmente preoccupante :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teacher</title>
		<link>http://www.fabiofalcinelli.it/2009/01/statement-vs-preparedstatement/comment-page-1/#comment-182</link>
		<dc:creator>teacher</dc:creator>
		<pubDate>Fri, 10 Dec 2010 23:23:51 +0000</pubDate>
		<guid isPermaLink="false">http://fabiofalcinelli.netsons.org/?p=114#comment-182</guid>
		<description>&lt;a href=&quot;#comment-181&quot; rel=&quot;nofollow&quot;&gt;@teacher&lt;/a&gt; 
&lt;blockquote cite=&quot;#comment-content-181&quot;&gt;
&lt;a href=&quot;#comment-181&quot; rel=&quot;nofollow&quot;&gt;teacher&lt;/a&gt; :
    &lt;a href=&quot;#comment-165&quot; rel=&quot;nofollow&quot;&gt;@ZeL&lt;/a&gt;
In fase di debug è possibile conoscere quanto inviato al server.
Esempio:
Logger log = Logger.getLogger(Esempio.class.getName());
String sql=”select * from TABELLA where 1=?”;
PreparedStatement statement = connection.prepareStatement(sql);
statement.setInt(1, 1);
log.debug(“statement”);
Esito:
statement
  &lt;/blockquote&gt;

log.debug(&quot;statement[&quot; + statement.toString() + &quot;]&quot;);

Esito:
statement[select * from TABELLA where 1=1]</description>
		<content:encoded><![CDATA[<p><a href="#comment-181" rel="nofollow">@teacher</a> </p>
<blockquote cite="#comment-content-181"><p>
<a href="#comment-181" rel="nofollow">teacher</a> :<br />
    <a href="#comment-165" rel="nofollow">@ZeL</a><br />
In fase di debug è possibile conoscere quanto inviato al server.<br />
Esempio:<br />
Logger log = Logger.getLogger(Esempio.class.getName());<br />
String sql=”select * from TABELLA where 1=?”;<br />
PreparedStatement statement = connection.prepareStatement(sql);<br />
statement.setInt(1, 1);<br />
log.debug(“statement”);<br />
Esito:<br />
statement
  </p></blockquote>
<p>log.debug(&#8220;statement[" + statement.toString() + "]&#8220;);</p>
<p>Esito:<br />
statement[select * from TABELLA where 1=1]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teacher</title>
		<link>http://www.fabiofalcinelli.it/2009/01/statement-vs-preparedstatement/comment-page-1/#comment-181</link>
		<dc:creator>teacher</dc:creator>
		<pubDate>Fri, 10 Dec 2010 20:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://fabiofalcinelli.netsons.org/?p=114#comment-181</guid>
		<description>&lt;a href=&quot;#comment-165&quot; rel=&quot;nofollow&quot;&gt;@ZeL&lt;/a&gt; 
In fase di debug è possibile conoscere quanto inviato al server.
Esempio:
Logger log = Logger.getLogger(Esempio.class.getName());
String sql=&quot;select * from TABELLA where 1=?&quot;;
PreparedStatement statement = connection.prepareStatement(sql);
statement.setInt(1, 1);
log.debug(&quot;statement&quot;);

Esito:
statement</description>
		<content:encoded><![CDATA[<p><a href="#comment-165" rel="nofollow">@ZeL</a><br />
In fase di debug è possibile conoscere quanto inviato al server.<br />
Esempio:<br />
Logger log = Logger.getLogger(Esempio.class.getName());<br />
String sql=&#8221;select * from TABELLA where 1=?&#8221;;<br />
PreparedStatement statement = connection.prepareStatement(sql);<br />
statement.setInt(1, 1);<br />
log.debug(&#8220;statement&#8221;);</p>
<p>Esito:<br />
statement</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZeL</title>
		<link>http://www.fabiofalcinelli.it/2009/01/statement-vs-preparedstatement/comment-page-1/#comment-165</link>
		<dc:creator>ZeL</dc:creator>
		<pubDate>Tue, 02 Feb 2010 17:57:22 +0000</pubDate>
		<guid isPermaLink="false">http://fabiofalcinelli.netsons.org/?p=114#comment-165</guid>
		<description>Il PreparedStatement è un po&#039; scomodo solo in fase di debug visto che non si ha la possibilità di sapere la query effettiva che viene mandata al DB dopo aver settato i vari parametri.</description>
		<content:encoded><![CDATA[<p>Il PreparedStatement è un po&#8217; scomodo solo in fase di debug visto che non si ha la possibilità di sapere la query effettiva che viene mandata al DB dopo aver settato i vari parametri.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

