Package org.hibernate.cache.internal
Class BasicCacheKeyImplementation
- java.lang.Object
-
- org.hibernate.cache.internal.BasicCacheKeyImplementation
-
- All Implemented Interfaces:
Serializable
@Internal public final class BasicCacheKeyImplementation extends Object implements Serializable
Key produced by DefaultCacheKeysFactory; this is the specialized implementation for the case in which the disassembled identifier is not an array and the tenantId is not being defined. The goal of this specialized representation is to be more efficient for this most common scenario, and save memory by omitting some fields. When making changes to this class, please be aware of its memory footprint.- Since:
- 6.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicCacheKeyImplementation(Serializable id, String entityOrRoleName, int hashCode)
Being an internal contract the arguments are not being checked.BasicCacheKeyImplementation(Object originalId, Serializable disassembledKey, Type type, String entityOrRoleName)
Being an internal contract the arguments are not being checked.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getEntityOrRoleName()
Object
getId()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
BasicCacheKeyImplementation
@Internal public BasicCacheKeyImplementation(Object originalId, Serializable disassembledKey, Type type, String entityOrRoleName)
Being an internal contract the arguments are not being checked.- Parameters:
originalId
-disassembledKey
- this must be the "disassembled" form of an IDtype
-entityOrRoleName
-
-
BasicCacheKeyImplementation
@Internal public BasicCacheKeyImplementation(Serializable id, String entityOrRoleName, int hashCode)
Being an internal contract the arguments are not being checked.- Parameters:
originalId
-disassembledKey
- this must be the "disassembled" form of an IDtype
-entityOrRoleName
-
-
-
Method Detail
-
getId
public Object getId()
-
-