The JDBC Rowset implementation proposed final draft 2 API docs and reference implementation (RI) is out for public review. The RI provides five standard implementations of the standard JDBC RowSet implementation interface definitions. Among other benefits, Rowsets are a nice replacement for custom data transfer objects for displaying relational data on web pages.
Check out JDBC Rowsets Implementations Proposed Final Draft 2 and the JSR 114 homepage.
-
JDBC Rowsets Implementations Public Review Draft 2 is out (8 messages)
- Posted by: Floyd Marinescu
- Posted on: August 29 2003 13:38 EDT
Threaded Messages (8)
- bad api by Carlo Marchiori on September 01 2003 04:30 EDT
- What would a good OO API for DBs look like? by Fred Bloggs on September 01 2003 06:50 EDT
- What would a good OO API for DBs look like? by Jerome Beau on September 01 2003 07:17 EDT
- What would a good OO API for DBs look like? (but we need more... by mauro antonaci on September 02 2003 02:46 EDT
- What would a good OO API for DBs look like? by Fred Bloggs on September 01 2003 06:50 EDT
- DataSet Cloned :) by sudhakar sadasivuni on September 01 2003 06:29 EDT
- DataSet Cloned :) by Mileta Cekovic on September 01 2003 09:33 EDT
- DataSet Cloned :) by Carlo Marchiori on September 01 2003 11:39 EDT
- JDBC RowSet Implementations Public Review II by Jonathan Bruce on September 04 2003 21:13 EDT
-
bad api[ Go to top ]
- Posted by: Carlo Marchiori
- Posted on: September 01 2003 04:30 EDT
- in response to Floyd Marinescu
This is an example of an api that was copied without thought from Microsoft (ODBC). JDBC does not have such concepts such as database, tables, rows. Everything is shrinked into a single class (namely ResultSet). From this uncomfortable starting point it's very difficult to develop anything good. -
What would a good OO API for DBs look like?[ Go to top ]
- Posted by: Fred Bloggs
- Posted on: September 01 2003 06:50 EDT
- in response to Carlo Marchiori
This is an example of an api that was copied without thought from Microsoft (ODBC).
Up to a point. It would be great if someone came up with a really good OO model for working with databases and I agree that neither JDBC or ODBC or ADO are perfect. Sun based JDBC on ODBC because it was widely regarded as the best thing around at the time. They added some good new features to it PreparedStaement objects being one (having setString was something for which I shall be eternally grateful), the Resultset Metadata being another (you could build a fairly sophisticated web based adhoc query tool in about half a dozen lines with a Servlet and JDBC hard to imagine that in ODBC at the time). They made it stable (ODBC was horrendously flaky throughout all the time I used it). MS took a lot of these ideas on in ADO (Im not sure about the stability).
But if you were starting again and trying to build on OO API for databases what would it look like? -
What would a good OO API for DBs look like?[ Go to top ]
- Posted by: Jerome Beau
- Posted on: September 01 2003 07:17 EDT
- in response to Fred Bloggs
It would look like JDO (http://java.sun.com/products/jdo) -
What would a good OO API for DBs look like? (but we need more...[ Go to top ]
- Posted by: mauro antonaci
- Posted on: September 02 2003 02:46 EDT
- in response to Fred Bloggs
I think JDBC is a good O.O API for DB, i mean: is a good API for doing SQL SELECTS, INSERTS, UPDATES and playin with arrays of rows ... but may be what a true O.O programmer would like is a O.O API for Object Persistence so it have to write SQL code only when he needs to do complicated queries -
DataSet Cloned :)[ Go to top ]
- Posted by: sudhakar sadasivuni
- Posted on: September 01 2003 06:29 EDT
- in response to Floyd Marinescu
voila, you cloned .NET's DataSet atlast. -
DataSet Cloned :)[ Go to top ]
- Posted by: Mileta Cekovic
- Posted on: September 01 2003 09:33 EDT
- in response to sudhakar sadasivuni
Sun rleased rowset early access 4 implementation in year 2000, before .NET was released.
Borland Delphi has disconnected dataset implementation (TClientDataSet) in Delphi 3 (year 1997). This implementation is more reacher (more functionality) than both .NET and rowset implementation.
Disconnected dataset is sure not Microsoft invetion.
Just facts,
Mileta -
DataSet Cloned :)[ Go to top ]
- Posted by: Carlo Marchiori
- Posted on: September 01 2003 11:39 EDT
- in response to sudhakar sadasivuni
yes, of course.
I agree also that the future for java
of oo access to rdbms is jdo. It means
that the mapping to rdms is not done *inside*
objects (ejb width cmp), but *outside*,
namely it's an aspect to be added on demand.
this introduces to a more general problem of
how to extract and inject state into a java
object, given the fact that java hides memory
layout.
This kind of problem arises whenever
you must write code that *controls* your object
from outside your domain model (a controller).
In the end your application model must be wired
to I/O communication (network data, mouse, keybords,
...). Without the controller concept, objects are useless,
like a platonic inaccessible world of ideas.
Since you can't access java object layout,
in my opinion the language should offer a
a framework for state internalization and
externalization. Java Beans is such a framework,
but it was never seriously supported, since Sun
has proposed other models such as EJB, JMX, ...
Carlo. -
JDBC RowSet Implementations Public Review II[ Go to top ]
- Posted by: Jonathan Bruce
- Posted on: September 04 2003 21:13 EDT
- in response to Floyd Marinescu
Actually this is our public review II and we have made the additional effort to supply our reference implementation classes for you all to try out. I would encourage you all to try our latest drop and send feedback to:
jsr-114-comments at jcp dot org
You can download the RI from here
http://jcp.org/aboutJava/communityprocess/review/jsr114/index2.html
-Jonathan Bruce
JDBC Spec. Lead
Sun Microsystems Inc.