| Modifier and Type | Field and Description |
|---|---|
| private final EntityMode | |
| private final String | |
| private final int | |
| private final Serializable | |
| private final Type |
| Access | Constructor and Description |
|---|---|
| public | CacheKey(final Serializable
The identifier associated with the cached data id, final Type The Hibernate type mapping type, final String The entity or collection-role name. entityOrRoleName, final EntityMode The entiyt mode of the originating session entityMode, final SessionFactoryImplementor The session factory for which we are caching factory)Construct a new key for a collection or entity instance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public String | |
| public Serializable | |
| public int | |
| public String |
| entityMode | back to summary |
|---|---|
| private final EntityMode entityMode | |
| entityOrRoleName | back to summary |
|---|---|
| private final String entityOrRoleName | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| key | back to summary |
|---|---|
| private final Serializable key | |
| type | back to summary |
|---|---|
| private final Type type | |
| CacheKey | back to summary |
|---|---|
| public CacheKey(final Serializable id, final Type type, final String entityOrRoleName, final EntityMode entityMode, final SessionFactoryImplementor factory) Construct a new key for a collection or entity instance. Note that an entity name should always be the root entity name, not a subclass entity name.
| |
| 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.
| |
| getEntityOrRoleName | back to summary |
|---|---|
| public String getEntityOrRoleName() | |
| getKey | back to summary |
|---|---|
| public Serializable getKey() | |
| 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
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |