Package org.hibernate.cache.spi
Class QueryKey
- java.lang.Object
-
- org.hibernate.cache.spi.QueryKey
-
- All Implemented Interfaces:
Serializable
public class QueryKey extends Object implements Serializable
A key that identifies a particular query with bound parameter values. This object is used as a key into the query results cache.Note that the fields of this object must contain every explicit and implicit setting and parameter argument that affects the result list of the query, including things like the
limit
andoffset
,current tenant id
, andenabled filters
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
QueryKey.ParameterBindingsMemento
todo (6.0) : integrate work from original 6.0 branch
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
static QueryKey
from(String sqlQueryString, Limit limit, QueryParameterBindings parameterBindings, SharedSessionContractImplementor persistenceContext)
int
hashCode()
-
-
-
Method Detail
-
from
public static QueryKey from(String sqlQueryString, Limit limit, QueryParameterBindings parameterBindings, SharedSessionContractImplementor persistenceContext)
-
-