commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: [DbUtils] Retrieving Auto Generated Keys
Date Wed, 02 Jun 2004 13:05:11 GMT

--- Mikhail Krivoshein <info@mikkri.com> wrote:
> 
> 
> >>I dislike idea to implement independant set of query methods named 
> >>insert because JDBC doesn't do that.
> >>And unfornutatly there is no way to implement Object 
> >>getGeneratedKeys(ResultSetHandler rsh) because
> >>update closes statement object.
> >>    
> >>
> >
> >Passing a ResultSetHandler into the update() methods to deal with
> primary
> >keys seems reasonable.
> >
> So what id your decision? Do you plan to update code with my changes?

The best thing to do is open a bugzilla enhancement ticket with a cvs diff
-u formatted patch of the changes plus test cases.  Before adding this we
need to be sure it will still run on Java 1.3.

David

> 
> >>Looking forward for comments.
> >>Also I'd like to ask David about JDBC 3.0 support. How do you plan to 
> >>support JDBC 3.0 features in DbUtils?
> >>    
> >>
> >
> >What features specifically do you need support for?  
> >
> I just want to know you opinion about how to deal with them. At this 
> moment I need getGeneratedKeys() only.
> But who knows that happens later?
> 
> >I want to keep the releases and builds as simple as possible.  That's
> why
> >we use Proxies for the JDBC interfaces (which are incompatible between
> >versions) instead of concrete implementations:
>
>http://jakarta.apache.org/commons/dbutils/xref/org/apache/commons/dbutils/ProxyFactory.html
> >
> Looks like I misunderstand you here.
> 
> Best regards,
> Mikhail Krivoshein
> 
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message