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:
  • Constructor Details

    • BasicCacheKeyImplementation

      @Internal public BasicCacheKeyImplementation(Object originalId, Serializable disassembledKey, Type type, String entityOrRoleName)
      Being an internal contract the arguments are not being checked.
    • BasicCacheKeyImplementation

      @Internal public BasicCacheKeyImplementation(Serializable id, String entityOrRoleName, int hashCode)
      Being an internal contract the arguments are not being checked.
  • Method Details