Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cache data

 
anvi kon
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
anvi kon
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 56
Eclipse IDE Postgres Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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


How would i do it?
 
Jan Cumps
Bartender
Posts: 2586
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" ?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic