All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebeaninternal.server.cache.CacheChangeNaturalKeyPut Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebeaninternal.server.cache;

import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;

/**
 * Change the natural key mapping for a bean.
 */
class CacheChangeNaturalKeyPut implements CacheChange {

  private final BeanDescriptor descriptor;
  private final Object id;
  private final Object newKey;

  CacheChangeNaturalKeyPut(BeanDescriptor descriptor, Object id, Object newKey) {
    this.descriptor = descriptor;
    this.id = id;
    this.newKey = newKey;
  }

  @Override
  public void apply() {
    descriptor.cacheNaturalKeyPut(id, newKey);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy