io.ebeaninternal.server.query.DFetchGroupService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
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 - 2025 Weber Informatics LLC | Privacy Policy