|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cache.spi.QueryKey
public class QueryKey
A key that identifies a particular query with bound parameter values. This is the object Hibernate uses as its key into its query cache.
Method Summary | |
---|---|
boolean |
equals(Object other)
|
static QueryKey |
generateQueryKey(String queryString,
QueryParameters queryParameters,
Set filterKeys,
SessionImplementor session,
CacheableResultTransformer customTransformer)
Generates a QueryKey. |
Map |
getNamedParameters()
Provide (unmodifiable) access to the named parameters that are part of this query. |
CacheableResultTransformer |
getResultTransformer()
Provides access to the explicitly user-provided result transformer. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static QueryKey generateQueryKey(String queryString, QueryParameters queryParameters, Set filterKeys, SessionImplementor session, CacheableResultTransformer customTransformer)
queryString
- The sql query string.queryParameters
- The query parametersfilterKeys
- The keys of any enabled filters.session
- The current session.customTransformer
- The result transformer; should be
null if data is not transformed before being cached.
public CacheableResultTransformer getResultTransformer()
public Map getNamedParameters()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |