You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Chitra Raji <ch...@manas-solutions.com> on 2004/03/18 07:06:40 UTC

DbUtils classes not being Serializable

Hi,

I am planning to use DbUtils classes (QueryRunner & MapListHandler in
particular) for our DB operations.

Would like to know whether MapListHandler not being Serializable will cause
any problems on the
server side, if the server faces memory cruch situation.

Thanks in advance!!!

Cheers!

Chitra R.
Manas Solutions Pvt Ltd.
chitra.r@manas-solutions.com
http://www.manas-solutions.com/
Tel : +91-20-2422 3991 / 2 ext: 22

*****************************
When you have eliminated the impossible, whatever remains, however
improbable, must be the truth
- Sherlock Holmes
*****************************

Re: DbUtils classes not being Serializable

Posted by David Graham <gr...@yahoo.com>.
Only objects stored in the HttpSession are required to be Serializable.  I
don't see any reason to store MapListHandlers in the session but the Maps
they return could certaily be stored there.  A custom Map implementation
is returned that allows case insensitive column name lookups.  This custom
Map extends HashMap which is Serializable so you should have no problems.

David

--- Chitra Raji <ch...@manas-solutions.com> wrote:
> Hi,
> 
> I am planning to use DbUtils classes (QueryRunner & MapListHandler in
> particular) for our DB operations.
> 
> Would like to know whether MapListHandler not being Serializable will
> cause
> any problems on the
> server side, if the server faces memory cruch situation.
> 
> Thanks in advance!!!
> 
> Cheers!
> 
> Chitra R.
> Manas Solutions Pvt Ltd.
> chitra.r@manas-solutions.com
> http://www.manas-solutions.com/
> Tel : +91-20-2422 3991 / 2 ext: 22
> 
> *****************************
> When you have eliminated the impossible, whatever remains, however
> improbable, must be the truth
> - Sherlock Holmes
> *****************************
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

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