aspose file tools*
The moose likes JDBC and the fly likes cache data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "cache data" Watch "cache data" New topic
Author

cache data

anvi kon
Ranch Hand

Joined: Jan 08, 2010
Posts: 133
Hi ALL,


Does anybody know, How to cache the data in database table mysql server using jdbc?

It would be more helpful, If anyone can give some examples?

Thanks

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30299
    
150

Anvi,
Do you mean caching the data after it comes back from the database? If so, you would just use a Java data structure (List, Map, etc) to store the results.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
anvi kon
Ranch Hand

Joined: Jan 08, 2010
Posts: 133
No, I am talking about refershing the data in the database.

Do we have to do it before we close the datbase connection in the finally?

Can one tell me ,where we have to write the refershing data in java?


thanks

Charles 'King
Ranch Hand

Joined: Jul 05, 2009
Posts: 56

anvi kon wrote:No, I am talking about refershing the data in the database.

Do we have to do it before we close the datbase connection in the finally?

Can one tell me ,where we have to write the refershing data in java?


thanks



Your question is somewhat ambiguous. Can you give the scenario or overall problem you're attempting to solve? Do you mean updating the database? Or do you want to temporary store your data, then update the db with it? More information is needed.
anvi kon
Ranch Hand

Joined: Jan 08, 2010
Posts: 133
Hi,

I want to refersh the server,once I update the table in the database.


How would i do it?
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2495
    
    8

Hi Anvi. It is still not clear.

You tell us 3 things:
> How to cache the data in database table mysql server using jdbc?
> I am talking about refershing the data in the database.
> I want to refersh the server,once I update the table in the database.

Could you explain what you actually want to achieve? Maybe a small scenario?
Can you also explain what you mean by the server" ?


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cache data