io.ebeaninternal.server.query.DFetchGroupService Maven / Gradle / Ivy
package io.ebeaninternal.server.query;
import io.ebean.FetchGroup;
import io.ebean.FetchGroupBuilder;
import io.ebean.service.SpiFetchGroupQuery;
import io.ebean.service.SpiFetchGroupService;
import io.ebeaninternal.server.querydefn.OrmQueryDetail;
/**
* Default implementation of SpiFetchGroupService.
*/
public final class DFetchGroupService implements SpiFetchGroupService {
@Override
public FetchGroup of(Class cls, String select) {
return new DFetchGroup<>(detail(select));
}
@Override
public FetchGroupBuilder of(Class cls) {
return new DFetchGroupBuilder<>();
}
@Override
public SpiFetchGroupQuery queryFor(Class beanType) {
return new DefaultFetchGroupQuery<>();
}
private OrmQueryDetail detail(String select) {
OrmQueryDetail detail = new OrmQueryDetail();
detail.select(select);
return detail;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy