| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final Object | |
| private final boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | CacheKeyImplementation(final Object
The identifier associated with the cached data id, final Serializable disassembledKey, final Type The Hibernate type mapping type, final String The entity or collection-role name. entityOrRoleName, final String The tenant identifier associated with this data. tenantId)Construct a new key for a collection or entity instance. |
| public | CacheKeyImplementation(final Object
The identifier associated with the cached data id, final String The entity or collection-role name. entityOrRoleName, final String The tenant identifier associated with this data. tenantId, final int the pre-calculated hash code hashCode)Construct a new key for a collection or entity instance. |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public String | |
| public Object | |
| public String | |
| public int | |
| public String |
| entityOrRoleName | back to summary |
|---|---|
| private final String entityOrRoleName | |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| id | back to summary |
|---|---|
| private final Object id | |
| requiresDeepEquals | back to summary |
|---|---|
| private final boolean requiresDeepEquals | |
| tenantId | back to summary |
|---|---|
| private final String tenantId | |
| CacheKeyImplementation | back to summary |
|---|---|
| public CacheKeyImplementation(final Object id, final Serializable disassembledKey, final Type type, final String entityOrRoleName, final String tenantId) 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. | |
| CacheKeyImplementation | back to summary |
|---|---|
| public CacheKeyImplementation(final Object id, final String entityOrRoleName, final String tenantId, final int hashCode) 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. | |
| calculateHashCode | back to summary |
|---|---|
| private static int calculateHashCode(Object id, Type type, String tenantId) | |
| 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()
| |
| getId | back to summary |
|---|---|
| public Object getId() | |
| getTenantId | back to summary |
|---|---|
public String getTenantId()
| |
| 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. | |