| Modifier and Type | Field and Description |
|---|---|
| private final CacheableResultTransformer | |
| private final Set | |
| private final Integer | |
| private transient int | hashCode
For performance reasons, the hashCode is cached; however, it is marked transient so that it can be recalculated as part of the serialization process which allows distributed query caches to work properly. |
| private final Integer | |
| private final Map | |
| private final Type[] | |
| private final Object[] | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | QueryKey(String
The sql query string. sqlQueryString, Type[] Positional parameter types. positionalParameterTypes, Object[] Positional parameter values. positionalParameterValues, Map<K, V> Named parameters. namedParameters, Integer First row selection, if any. firstRow, Integer Max-rows selection, if any. maxRows, Set<E> Enabled filter keys, if any. filterKeys, String The tenant identifier in effect for this query, or tenantIdentifier, CacheableResultTransformer nullCustom result transformer, if one. customTransformer)Package-protected constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| private int | |
| public static QueryKey | Returns: The generate query cache key.The sql query string. queryString, QueryParameters The query parameters queryParameters, Set<E> The keys of any enabled filters. filterKeys, SharedSessionContractImplementor The current session. session, CacheableResultTransformer The result transformer; should be null if data is not transformed before being cached. customTransformer)Generates a QueryKey. |
| public Map | Returns: The (unmodifiable) map of named parametersProvide (unmodifiable) access to the named parameters that are part of this query. |
| public CacheableResultTransformer | Returns: The result transformer.Provides access to the explicitly user-provided result transformer. |
| public int | |
| private void | readObject(ObjectInputStream
The object input stream. in)Deserialization hook used to re-init the cached hashcode which is needed for proper clustering support. |
| public String |
| customTransformer | back to summary |
|---|---|
| private final CacheableResultTransformer customTransformer | |
| filterKeys | back to summary |
|---|---|
| private final Set<E> filterKeys | |
| firstRow | back to summary |
|---|---|
| private final Integer firstRow | |
| hashCode | back to summary |
|---|---|
| private transient int hashCode For performance reasons, the hashCode is cached; however, it is marked transient so that it can be recalculated as part of the serialization process which allows distributed query caches to work properly. | |
| maxRows | back to summary |
|---|---|
| private final Integer maxRows | |
| namedParameters | back to summary |
|---|---|
| private final Map<K, V> namedParameters | |
| positionalParameterTypes | back to summary |
|---|---|
| private final Type[] positionalParameterTypes | |
| positionalParameterValues | back to summary |
|---|---|
| private final Object[] positionalParameterValues | |
| sqlQueryString | back to summary |
|---|---|
| private final String sqlQueryString | |
| tenantIdentifier | back to summary |
|---|---|
| private final String tenantIdentifier | |
| QueryKey | back to summary |
|---|---|
| pack-priv QueryKey(String sqlQueryString, Type[] positionalParameterTypes, Object[] positionalParameterValues, Map<K, V> namedParameters, Integer firstRow, Integer maxRows, Set<E> filterKeys, String tenantIdentifier, CacheableResultTransformer customTransformer) Package-protected constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| generateHashCode | back to summary |
|---|---|
| private int generateHashCode() | |
| generateQueryKey | back to summary |
|---|---|
| public static QueryKey generateQueryKey(String queryString, QueryParameters queryParameters, Set<E> filterKeys, SharedSessionContractImplementor session, CacheableResultTransformer customTransformer) Generates a QueryKey.
| |
| getNamedParameters | back to summary |
|---|---|
| public Map Provide (unmodifiable) access to the named parameters that are part of this query.
| |
| getResultTransformer | back to summary |
|---|---|
| public CacheableResultTransformer getResultTransformer() Provides access to the explicitly user-provided result transformer.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Deserialization hook used to re-init the cached hashcode which is needed for proper clustering support.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |