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

io.ebeaninternal.server.deploy.meta.BeanPropertyElementSetter Maven / Gradle / Ivy

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

import io.ebean.bean.EntityBean;
import io.ebeaninternal.server.properties.BeanPropertySetter;

/**
 * Setter used for "element beans" with ElementCollection.
 */
final class BeanPropertyElementSetter implements BeanPropertySetter {

  private final int pos;

  BeanPropertyElementSetter(int pos) {
    this.pos = pos;
  }

  @Override
  public void set(EntityBean bean, Object value) {
    bean._ebean_setField(pos, value);
  }

  @Override
  public void setIntercept(EntityBean bean, Object value) {
    set(bean, value);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy