The Source for Java Technology Collaboration
User: Password:



Jonathan Bruce's Blog

Community: Java Enterprise Archives


Persistence Stew II: JDJ Article (JDBC - The Indipensible Component of Persistence Mechanisms)

Posted by jonbruce on October 17, 2005 at 03:03 PM | Permalink | Comments (0)

A few weeks back, I worked feverishly to get an article ready for this months' (November 2005) edition of the Sys-con's Java Developer Journal, or as many people refer to it, the JDJ. Check out your pigeon hole mailbox, or head to JDJ online to read the article.

For this article, I delve into the details of matching your JDBC driver against the many choices in the Object-Relational-Mapping (ORM) mechanisms that are so prevalent in many of today's popular architectures. You can use the figure below as a reference. This is an excellent representation we put together that shows how can assemble an application that uses an ORM mechanism, coupled with a best of class JDBC driver and layer it on top of your relational data source.


Persistence Mechanisms


While I specifically avoid any wide ranging discussion on the pros and cons of each ORM mechanism, but opt to peel back some of the layers to look exhaustively at the connectivity layer - this is something that all too often under discussed in many development organizations. The majority of today's ORM mechanisms live on top of relational databases, so it is a reasonable assertion to make that without an effective and informed investment in a connectivity layer from a best of breed JDBC driver, you risk loosing the productivity value-add an ORM mechanism to the disadvantage of your development organization.



Exception chaining in JDBC

Posted by jonbruce on June 15, 2004 at 09:55 AM | Permalink | Comments (11)

Our thoughts on introducing exception chaining are centered on much of the feedback we received from the JDBC RowSet Implementations 1.0 release, both from public forums such as ServerSide and on feedback email aliases.

By defining a group of methods that allow a Throwable instance to be set at the SQLException level, this allow related exceptions definition introduced in JDBC RowSets to also provide chaining support. Overloading the current set of constructors should achieve chaining functionality and compliment the four other currently defined constructors.

    public SQLException(Throwable cause);
    
    public SQLException(String reason, Throwable cause);
    
    public SQLException(String reason, String sqlState, Throwable cause);
    
Intertwining this with a an additional proposal underway in JDBC 4.0 which is looking to provide a limited set of exceptions that relate directly to SQL State definitions should provide an improved standard API so developers can more easily port the applications between different SQL data sources.

I guess I am writing with my Specification Lead hat on here, but I also want to be sure we correctly gauge the needs of the community, so I encourage you all to add your comments below. Over the next few weeks I also intend to write about how JDBC 4.0 is progressing and gauge the communities position as we progress through the Java Community Process.



Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds