containsByPrimaryKey(entityClass, primaryKey) {
    validateEntityClass(entityClass)

    if (!this[PRIVATE.entities].has(entityClass)) {
      return false
    }

    let keysToEntities = this[PRIVATE.entities].get(entityClass)
    let serializedKey = serializeKey(primaryKey)
    return keysToEntities.has(serializedKey)
  }
/**
   * Checks whether an entity of the specified type and identified by the
   * provided primary key is currently managed by this entity manager.
   *
   * @template {T} extends AbstractEntity
   * @param {function(new: T, Object<string, *>)} entityClass The type of the
   *        entity to check for.
   * @param {(number|string|Date|Array)} primaryKey The primary key identifying
   *        the entity.
   * @return {boolean} {@code true} if the specified entity is managed by this
   *         entity manager.
   */
Checks whether an entity of the specified type and identified by the
provided primary key is currently managed by this entity manager.

@template {T} extends AbstractEntity
@param {function(new: T, Object)} entityClass The type of the
entity to check for.
@param {(number|string|Date|Array)} primaryKey The primary key identifying
the entity.
@return {boolean}  true if the specified entity is managed by this
entity manager.
Checks whether an entity of the specified type and identified by the provided primary key is currently managed by this entity manager . @template { T } extends AbstractEntity @param { function ( new : T Object ) } entityClass The type of the entity to check for . @param { ( number|string|Date|Array ) } primaryKey The primary key identifying the entity . @return { boolean } true if the specified entity is managed by this entity manager .
containsByPrimaryKey(entityClass, primaryKey) {
    validateEntityClass(entityClass)
    if (!this[PRIVATE.entities].has(entityClass)) {
      return false
    }
    let keysToEntities = this[PRIVATE.entities].get(entityClass)
    let serializedKey = serializeKey(primaryKey)
    return keysToEntities.has(serializedKey)
  }
containsByPrimaryKey ( entityClass , primaryKey ) { validateEntityClass ( entityClass ) if ( ! this [ PRIVATE . entities ] . has ( entityClass ) ) { return false } let keysToEntities = this [ PRIVATE . entities ] . get ( entityClass ) let serializedKey = serializeKey ( primaryKey ) return keysToEntities . has ( serializedKey ) }
Checks whether an entity of the specified type and identified by the
 provided primary key is currently managed by this entity manager.
Checks whether an entity of the specified type and identified by the provided primary key is currently managed by this entity manager .