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] What's about protected QueryRunner.prepareConnection()?
Date Wed, 16 Jun 2004 13:05:10 GMT
Replacing calls to ds.getConnection() with prepareConnection() sounds
reasonable.  Please open an enhancement ticket.

Thanks,
David

--- Mikhail Krivoshein <info@mikkri.com> wrote:
> Hello all,
> 
> Currently QueryRunner has prepareStatement() method that is used to 
> create a new statements.
> I think there is sense to go further and create prepareConnection() 
> method that will be used to create a new connections (and tune them).
> 
> Idea behind this is to provide protected method that can't be used in 
> derived QueryRunners to tune connection
> establishing code.
> 
> I presonally want to override such prepareConnection() method in 
> MyQueryRunner and make
> conn.setAutoCommit(false);
> call there.
> 
> Looking forward to hear comments.
> If you decide that this is a good idea, I'm ready to prepare a patch.
> 
> 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!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
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