mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
29 lines
723 B
Java
29 lines
723 B
Java
package io.ebeaninternal.server.query;
|
|
|
|
import io.ebean.FetchGroup;
|
|
import io.ebean.FetchGroupBuilder;
|
|
import io.ebean.service.SpiFetchGroupService;
|
|
import io.ebeaninternal.server.querydefn.OrmQueryDetail;
|
|
|
|
/**
|
|
* Default implementation of SpiFetchGroupService.
|
|
*/
|
|
public final class DFetchGroupService implements SpiFetchGroupService {
|
|
|
|
@Override
|
|
public <T> FetchGroup<T> of(Class<T> cls, String select) {
|
|
return new DFetchGroup<>(detail(select));
|
|
}
|
|
|
|
@Override
|
|
public <T> FetchGroupBuilder<T> of(Class<T> cls) {
|
|
return new DFetchGroupBuilder<>();
|
|
}
|
|
|
|
private OrmQueryDetail detail(String select) {
|
|
OrmQueryDetail detail = new OrmQueryDetail();
|
|
detail.select(select);
|
|
return detail;
|
|
}
|
|
}
|