QueryKey (Hibernate JavaDocs)
Date: 2012-04-05

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 is the object Hibernate uses as its key into its query cache.

See Also:
  Serialized Form

Method Summary
`boolean` | `equals(Object other)`
`static QueryKey` | `generateQueryKey(String queryString, QueryParameters queryParameters, Set filterKeys, SessionImplementor session, CacheableResultTransformer customTransformer)` Generates a QueryKey.
`CacheableResultTransformer` | `getResultTransformer()`
`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,
                                            CacheableResultTransformer customTransformer)

  Generates a QueryKey.

  Parameters:
    `queryString` - The sql query string.
    `queryParameters` - The query parameters
    `filterKeys` - 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.
  Returns:
    The generate query cache key.

### getResultTransformer

    public CacheableResultTransformer getResultTransformer()

### equals

    public boolean equals(Object other)

  Overrides:
    `equals` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.