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

io.ebeaninternal.server.deploy.BeanPropertySimpleCollection Maven / Gradle / Ivy

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

import io.ebean.SqlUpdate;
import io.ebean.bean.EntityBean;
import io.ebeaninternal.api.json.SpiJsonReader;
import io.ebeaninternal.server.deploy.meta.DeployBeanPropertySimpleCollection;

import java.io.IOException;

public final class BeanPropertySimpleCollection extends BeanPropertyAssocMany {

  public BeanPropertySimpleCollection(BeanDescriptor descriptor, DeployBeanPropertySimpleCollection deploy) {
    super(descriptor, deploy);
  }

  @Override
  public void bindElementValue(SqlUpdate insert, Object value) {
    insert.setParameter(value);
  }

  @Override
  public Object jsonReadCollection(SpiJsonReader readJson, EntityBean parentBean, Object collectionValue) throws IOException {
    return elementDescriptor.jsonReadCollection(readJson, parentBean);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy