<?xml version="1.0" encoding="UTF-8"?>











<rss version="2.0" xmlns:jf="http://www.jivesoftware.com/xmlns/jiveforums/rss">



<channel>
    <title>Support Forums: Message List - Designing and Testing JDBC Code</title>
    <link>http://www.theserverside.com</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    
        <generator>Jive Forums Silver 5.5.30 (www.jivesoftware.com)</generator>
    
    <pubDate>Wed, 22 May 2013 07:40:46 -0400</pubDate>


    <item>

        <title>This code is *not* quite nasty</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote">You have a connection pool and there are a lot of queries to the database. The connection are shared between users are closed very rarely, only when unused for a long period of time. This is the case of most application servers....]]></description>
        

        <pubDate>Thu, 04 Mar 2004 10:49:28 -0500</pubDate>

        

        <jf:creationDate>Thu, 04 Mar 2004 10:49:28 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 04 Mar 2004 10:49:28 -0500</jf:modificationDate>
        <jf:date>Mar 4, 2004</jf:date>
        <jf:author>Bob Lee</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>This code really is *a bit* nasty in its potential effects</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote">I've seen this problem often enough and recently enough to believe that it's reasonably common for connections not to cascade the cleanup, despite what the javadocs say. I don't think this behaviour was explicitly mentioned in the...]]></description>
        

        <pubDate>Thu, 04 Mar 2004 10:47:28 -0500</pubDate>

        

        <jf:creationDate>Thu, 04 Mar 2004 10:47:28 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 04 Mar 2004 10:47:28 -0500</jf:modificationDate>
        <jf:date>Mar 4, 2004</jf:date>
        <jf:author>Bob Lee</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>This code is *not* quite nasty</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[Hi,...]]></description>
        

        <pubDate>Thu, 04 Mar 2004 10:46:19 -0500</pubDate>

        

        <jf:creationDate>Thu, 04 Mar 2004 10:46:19 -0500</jf:creationDate>
        <jf:modificationDate>Thu, 04 Mar 2004 10:46:19 -0500</jf:modificationDate>
        <jf:date>Mar 4, 2004</jf:date>
        <jf:author>Mircea Crisan</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>This code really is *a bit* nasty in its potential effects</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[I've seen this problem often enough and recently enough to believe that it's reasonably common for connections not to cascade the cleanup, despite what the javadocs say. I don't think this behaviour was explicitly mentioned in the JDBC specs until JDBC...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 19:18:57 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 19:18:57 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 19:18:57 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>David Friar</jf:author>
        <jf:replyCount>1</jf:replyCount>
    </item>


    <item>

        <title>This code is *not* quite nasty</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote">I hope someone can correct me on this but it isn't my understanding that closing a connection implicitly closes statements. Sure, any statements that were created for a given connection will not be usable after the connection has...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 17:50:15 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 17:50:15 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 17:50:15 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Bob Lee</jf:author>
        <jf:replyCount>4</jf:replyCount>
    </item>


    <item>

        <title>This code is quite nasty</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote"> </div>...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 16:21:45 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 16:21:45 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 16:21:45 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>David Friar</jf:author>
        <jf:replyCount>5</jf:replyCount>
    </item>


    <item>

        <title>This code is quite nasty</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote">Err, Bob, ever though about closing your statements? In a finally clause perhaps?</div>...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 15:46:09 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 15:46:09 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 15:46:09 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Bob Lee</jf:author>
        <jf:replyCount>6</jf:replyCount>
    </item>


    <item>

        <title>This code is quite nasty</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[from Bob's blog entry:...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 15:07:49 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 15:07:49 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 15:07:49 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>David Friar</jf:author>
        <jf:replyCount>7</jf:replyCount>
    </item>


    <item>

        <title>Designing and Testing JDBC Code</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote">In my experience, most DAO problems found in unit tests are a result of the application being out of sync with the database structure.</div>...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 14:32:48 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 14:32:48 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 14:32:48 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Slava Imeshev</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Reasons for separated SQL, take 2</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote">My experience is that ~10% of the DAO methods end up having custom SQL queries that are not supported by HSQLDB.</div>...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 14:20:53 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 14:20:53 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 14:20:53 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Juozas Baliuka</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Answer:</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[Don't -- use ORM.]]></description>
        

        <pubDate>Wed, 03 Mar 2004 13:58:53 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 13:58:53 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 13:58:53 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Jason Jones</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Designing and Testing JDBC Code</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[<div class="jive-quote">In my experience, most DAO problems found in unit tests are a result of the application being out of sync with the database structure.</div>...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 13:49:00 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 13:49:00 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 13:49:00 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Juozas Baliuka</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Designing and Testing JDBC Code</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[In my experience, most DAO problems found in unit tests are a result of the application being out of sync with the database structure....]]></description>
        

        <pubDate>Wed, 03 Mar 2004 13:05:01 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 13:05:01 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 13:05:01 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Jeff Drost</jf:author>
        <jf:replyCount>2</jf:replyCount>
    </item>


    <item>

        <title>Designing and Testing JDBC Code</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[I think the mentioned approach has some problems that make value of it doubtful....]]></description>
        

        <pubDate>Wed, 03 Mar 2004 12:52:50 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 12:52:50 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 12:52:50 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Slava Imeshev</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>


    <item>

        <title>Keeping Database Agnostic??</title>
        <link>http://www.theserverside.com/discussions/thread.tss?thread_id=24308</link>

        

        
            <description><![CDATA[This strikes me as one of the ideal world solutions. In an ideal world creating database agnostic code would be okay, but in the real world many organization commit to and invest in an RDBMS expecting that it's features will get used. What is the point...]]></description>
        

        <pubDate>Wed, 03 Mar 2004 12:38:28 -0500</pubDate>

        

        <jf:creationDate>Wed, 03 Mar 2004 12:38:28 -0500</jf:creationDate>
        <jf:modificationDate>Wed, 03 Mar 2004 12:38:28 -0500</jf:modificationDate>
        <jf:date>Mar 3, 2004</jf:date>
        <jf:author>Rob Harrop</jf:author>
        <jf:replyCount>0</jf:replyCount>
    </item>



</channel>
</rss>

