mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
55 lines
1.3 KiB
Java
55 lines
1.3 KiB
Java
package com.avaje.ebeaninternal.api;
|
|
|
|
import com.avaje.ebean.bean.ObjectGraphNode;
|
|
import com.avaje.ebean.bean.PersistenceContext;
|
|
import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
|
|
import com.avaje.ebeaninternal.server.deploy.BeanPropertyAssocMany;
|
|
|
|
/**
|
|
* Controls the loading of OneToMany and ManyToMany relationships.
|
|
*
|
|
* @author rbygrave
|
|
*/
|
|
public interface LoadManyContext extends LoadSecondaryQuery {
|
|
|
|
/**
|
|
* Configure the query to load beans for this node/path.
|
|
*/
|
|
public void configureQuery(SpiQuery<?> query);
|
|
|
|
/**
|
|
* Return the full path of this node from the root object.
|
|
*/
|
|
public String getFullPath();
|
|
|
|
/**
|
|
* Return the node location for this node/path.
|
|
*/
|
|
public ObjectGraphNode getObjectGraphNode();
|
|
|
|
|
|
/**
|
|
* Return the persistence context used for all queries
|
|
* related to this object graph.
|
|
*/
|
|
public PersistenceContext getPersistenceContext();
|
|
|
|
/**
|
|
* Return the batchSize used for lazy loading beans.
|
|
*/
|
|
public int getBatchSize();
|
|
|
|
/**
|
|
* Return the BeanDescriptor for beans for this node.
|
|
*/
|
|
public BeanDescriptor<?> getBeanDescriptor();
|
|
|
|
/**
|
|
* Return the associated Many bean property.
|
|
*/
|
|
public BeanPropertyAssocMany<?> getBeanProperty();
|
|
|
|
|
|
|
|
}
|