Files
ebean/src/main/java/io/ebeaninternal/server/query/STreePropertyAssocMany.java
T
Rob BygraveandGitHub 002014f930 For #2038 - updated from 12.3.6 to 12.3.7 - NPE BeanDescriptor.findPropertyFromPath(BeanDescriptor.java:1965) (#2047)
* #2038 - lazy loading ToMany with path

* #2038 - Failing test for NPE BeanDescriptor.findPropertyFromPath(BeanDescriptor.java:1965)

* #2038 Refactor internals DbReadContext use BeanPropertyAssocMany
2020-08-24 18:40:36 +12:00

57 lines
1.4 KiB
Java

package io.ebeaninternal.server.query;
import io.ebean.bean.BeanCollection;
import io.ebean.bean.EntityBean;
import io.ebeaninternal.server.deploy.BeanPropertyAssocMany;
import io.ebeaninternal.server.deploy.DbSqlContext;
import io.ebeaninternal.server.deploy.TableJoin;
public interface STreePropertyAssocMany extends STreePropertyAssoc {
/**
* Return as BeanPropertyAssocMany.
*/
BeanPropertyAssocMany<?> asMany();
/**
* Append exported columns to the select.
*/
void addSelectExported(DbSqlContext ctx, String prefix);
/**
* Return true if this is a ManyToMany with history.
*/
boolean isManyToManyWithHistory();
/**
* Return a reference collection.
*/
BeanCollection<?> createReferenceIfNull(EntityBean localBean);
/**
* Return a reference collection forcing a new reference on REFRESH query.
*/
BeanCollection<?> createReference(EntityBean localBean, boolean forceNewReference);
/**
* Return true if the property has a join table.
*/
boolean hasJoinTable();
/**
* Return the intersection table join.
*/
TableJoin getIntersectionTableJoin();
/**
* Add a bean to the collection.
*/
void addBeanToCollectionWithCreate(EntityBean contextParent, EntityBean detailBean, boolean withCheck);
/**
* Return true if the property is excluded from history.
*/
boolean isExcludedFromHistory();
}