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 and
offset and enabled filters.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | QueryKey.ParameterBindingsMemento
todo (6.0) : integrate work from original 6.0 branch |
| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| 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 QueryKey. | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public static QueryKey | from(String sqlQueryString, Limit limit, QueryParameterBindings parameterBindings, SharedSessionContractImplementor session)
|
| private int | |
| 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. |
| enabledFilterNames | back to summary |
|---|---|
| private final String[] enabledFilterNames | |
| 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 | |
| parameterBindingsMemento | back to summary |
|---|---|
| private final QueryKey. | |
| sqlQueryString | back to summary |
|---|---|
| private final String sqlQueryString | |
| QueryKey | back to summary |
|---|---|
| public QueryKey(String sql, QueryKey. | |
| 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.
| |
| from | back to summary |
|---|---|
| public static QueryKey from(String sqlQueryString, Limit limit, QueryParameterBindings parameterBindings, SharedSessionContractImplementor session) | |
| generateHashCode | back to summary |
|---|---|
| private int generateHashCode() | |
| 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.
| |