This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes 0penJPA QueryCaching Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "0penJPA QueryCaching" Watch "0penJPA QueryCaching" New topic
Author

0penJPA QueryCaching

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 622
Hi All,

I am trying to cache the query results generated and later on use the results from the cache instead of touching the database.

This is what I am doing to put/get the values from the cache.





The thing I don't understand is how do I get the QueryKey (Referred to as key here in my code) ?

I tried doing this
but the q here in this line of code is supposed to be of type org.apache.openjpa.kernel.Query?


Can anybody help me with this please?

Thanks.


Be Humble... Be Nice.
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 622
Anybody?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 0penJPA QueryCaching
 
Similar Threads
Hibernate - How to retrieve data from the database
Unable to fetch results using createQuery
a general doubt in using Left Join Fetch
Transfering 3rd party (unserialized) objects through web server.
transfer unserilaized objects as SOAP response