public class QueryKey
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
static QueryKey |
generateQueryKey(java.lang.String queryString,
QueryParameters queryParameters,
java.util.Set filterKeys,
SharedSessionContractImplementor session,
CacheableResultTransformer customTransformer)
Generates a QueryKey.
|
java.util.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() |
java.lang.String |
toString() |
public static QueryKey generateQueryKey(java.lang.String queryString, QueryParameters queryParameters, java.util.Set filterKeys, SharedSessionContractImplementor 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 java.util.Map getNamedParameters()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.