[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6166) Add hitCache() to Query Interface

David (JIRA) noreply at atlassian.com
Thu Apr 28 16:05:59 EDT 2011


Add hitCache() to Query Interface
---------------------------------

                 Key: HHH-6166
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6166
             Project: Hibernate Core
          Issue Type: New Feature
          Components: caching (L2), core
    Affects Versions: 3.6.1
         Environment: Hibernate 3.6.1_FINAL
            Reporter: David
            Priority: Minor


"Wish List" Item.

It would be nifty if the Query API had a method hitCache() that simply returns a boolean (or throws an exception).

If a query was executed (list(), iterate()) and the query hit the second-level query cache, hitCache() would return true, false otherwise.  Throw an exception if the query hasn't been executed yet.

Thanks.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list