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

io.ebeaninternal.server.dto.DtoQueryPlanConstructor Maven / Gradle / Ivy

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

import io.ebean.core.type.DataReader;

import java.sql.SQLException;

/**
 * Plan based on mapping via single constructor only.
 */
final class DtoQueryPlanConstructor extends DtoQueryPlanBase {

  private final DtoMetaConstructor constructor;

  DtoQueryPlanConstructor(DtoMappingRequest request, DtoMetaConstructor constructor) {
    super(request);
    this.constructor = constructor;
  }

  @Override
  public Object readRow(DataReader dataReader) throws SQLException {
    return constructor.process(dataReader);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy