-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Cache up to date?
PostPosted: Mon Mar 29, 2004 12:15 pm 
Regular
Regular

Joined: Tue Nov 11, 2003 7:35 pm
Posts: 63
I have a pretty complex SQL query that returns results from a few different tables and performs a UNION etc. I execute this query using straight JDBC using session.connection().

I would like to be able to cache my results though. I know there is an Update Timestamp cache that Hibernate uses that has the timestamp of the latest change to any underlying table. Is there an API call somewhere that I can pass in a list of tables or POs I would like to check and a timestamp, where a boolean would come back indicating if the table has been modified since that time? This is the only way I would trust my cached results.

Thanks in advance,
Daniel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 9:17 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No there is no way to interfere with Hibernate cache from the outside.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 31, 2004 11:57 am 
Regular
Regular

Joined: Tue Nov 11, 2003 7:35 pm
Posts: 63
Thanks for your reply.

Perhaps I was not clear though. I am not "interfering" with the Hibernate cache in any way. I will use my own caching system to actually cache my result set. All I need to know is if there is a way to ask Hibernate if a list of tables are up to date from a specific time. The Hibernate query cache already uses such functionality, is there a way to expose that very function in an API. Or is this something that can perhaps be added? I am sure it could be useful in other situations as well.

Daniel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.