logo       

Re: [opennms-devel] Re: [opennms-discuss] Dev-jam?: msg#00009

network.opennms.bugs

Subject: Re: [opennms-devel] Re: [opennms-discuss] Dev-jam?


On Nov 6, 2005, at 8:04 PM, Eric Molitor wrote:

I would replace traditional DAO pattern with Springs JDBC support, it's a
lot easier than...

Try {
DB crap
} catch {
Log crap
} finally {
Try {
Result.close
} catch (SQLException ex) {
Log cant close
}
Try {
Statement.close
} catch (SQLException ex) {
Log cant close
}
Try {
Connection.close
} catch (SQLException ex) {
Log cant close
}
}

We couldn't agree more and even if we weren't going to implement a clever DAO design pattern or cool framework for this we would have abstracted all that "JDBC DB crap" out anyway (see Querier.java).

Thank you for the JDBC Template suggestion. We're pretty sure about our Hibernate direction that we will publish soon.

-David


David Hustace
The OpenNMS Group, Inc.
Main : +1 919 545 2553 Fax: +1 503-961-7746
Direct: +1 919 827 1201 Skype: dhustace
Key Fingerprint: 8EC1 F319 2C1D 3197 AAB9 580F FACD 1D19 175E D903




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise