Class 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 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 ID
        type -
        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 ID
        type -
        entityOrRoleName -