This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes cache data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32609
    
215

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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: 2549
    
  10

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cache data
 
It's not a secret anymore!