org.hibernate.cache
Class QueryKey

java.lang.Object
  extended byorg.hibernate.cache.QueryKey
All Implemented Interfaces:
Serializable

public class QueryKey
extends Object
implements Serializable

A key that identifies a particular query with bound parameter values. This is the object Hibernate uses as its key into its query cache.

Author:
Gavin King, Steve Ebersole
See Also:
Serialized Form

Method Summary
 boolean equals(Object other)
          
static QueryKey generateQueryKey(String queryString, QueryParameters queryParameters, Set filterKeys, SessionImplementor session)
          Generates a QueryKey.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

generateQueryKey

public static QueryKey generateQueryKey(String queryString,
                                        QueryParameters queryParameters,
                                        Set filterKeys,
                                        SessionImplementor session)
Generates a QueryKey.

Parameters:
queryString - The sql query string.
queryParameters - The query parameters
filterKeys - The keys of any enabled filters.
session - The current session.
Returns:
The generate query cache key.

equals

public boolean equals(Object other)


hashCode

public int hashCode()


toString

public String toString()