mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - code cleanup - remove unused
This commit is contained in:
@@ -14,9 +14,7 @@ public abstract class DLoadBaseContext {
|
||||
protected final DLoadContext parent;
|
||||
|
||||
protected final BeanDescriptor<?> desc;
|
||||
|
||||
protected final String path;
|
||||
|
||||
|
||||
protected final String fullPath;
|
||||
|
||||
protected final OrmQueryProperties queryProps;
|
||||
@@ -40,7 +38,6 @@ public abstract class DLoadBaseContext {
|
||||
this.serverName = parent.getEbeanServer().getName();
|
||||
this.desc = desc;
|
||||
this.queryProps = queryProps;
|
||||
this.path = path;
|
||||
this.fullPath = parent.getFullPath(path);
|
||||
|
||||
this.hitCache = !parent.isExcludeBeanCache() && desc.isBeanCaching();
|
||||
|
||||
@@ -91,9 +91,7 @@ public class DLoadBeanContext extends DLoadBaseContext implements LoadBeanContex
|
||||
if (bufferList != null) {
|
||||
for (LoadBuffer loadBuffer : bufferList) {
|
||||
if (!loadBuffer.list.isEmpty()) {
|
||||
boolean loadCache = false;
|
||||
LoadBeanRequest req = new LoadBeanRequest(loadBuffer, parentRequest, false, null, loadCache);
|
||||
|
||||
LoadBeanRequest req = new LoadBeanRequest(loadBuffer, parentRequest, false, null, false);
|
||||
parent.getEbeanServer().loadBean(req);
|
||||
if (!queryProps.isQueryFetchAll()) {
|
||||
// Stop - only fetch the first batch ... the rest will be lazy loaded
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
package com.avaje.ebeaninternal.server.loadcontext;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface DLoadList<T> {
|
||||
|
||||
int add(T e);
|
||||
|
||||
/**
|
||||
* Return the next batch of entries from the top.
|
||||
*/
|
||||
List<T> getNextBatch(int batchSize);
|
||||
|
||||
void removeEntry(int position);
|
||||
|
||||
/**
|
||||
* Return the batch of entries based on the position and batch size.
|
||||
*/
|
||||
List<T> getLoadBatch(int position, int batchSize);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user