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

io.ebeaninternal.server.cache.CacheChangeNaturalKeyPut Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.cache;

import io.ebeaninternal.server.deploy.BeanDescriptor;

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

  private final BeanDescriptor descriptor;
  private final String key;
  private final String newKey;

  CacheChangeNaturalKeyPut(BeanDescriptor descriptor, String key, String newKey) {
    this.descriptor = descriptor;
    this.key = key;
    this.newKey = newKey;
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy