I don't mind, but it's a very limited implementation. I don't know if it's
abywhere near general-purpose for your needs.

I'll post it and let you decide.

Moandji
On 29 Jan 2012 18:21, "William Speirs" <wspe...@apache.org> wrote:

> Interesting... would you be willing to donate your QueryRunner
> implementation? If so, open a JIRA ticket[1] with your request for this
> functionality, and upload your code.
>
> Thanks...
>
> Bill-
>
> [1] https://issues.apache.org/jira/browse/DBUTILS
>
> On Sun, Jan 29, 2012 at 11:19 AM, Moandji Ezana <mwa...@gmail.com> wrote:
>
> > On Sun, Jan 29, 2012 at 6:05 PM, William Speirs <wspe...@apache.org>
> > wrote:
> >
> > > That is a question more specific to the database you're using, than
> > > DBUtils. For some databases this means writing a stored procedure which
> > > performs the insert, and then a special select to get the primary key.
> > You
> > > can of course use DBUtils to call this stored proc and read the primary
> > > key.
> >
> >
> > As Simone mentioned, I'd like to use Statement#getGeneratedKeys(), which
> > requires passing Statement.RETURN_GENERATED_KEYS to
> > Connection#prepareStatement(). It doesn't seem possible to do this with
> the
> > current API.
> >
> > I've written my own QueryRunner for the time being, but it seems like a
> > common enough requirement to be in the library itself.
> >
> > Moandji
> >
>

Reply via email to