io.ebeaninternal.server.query.CQueryCollectionAddNoop 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.bean.BeanCollection;
import io.ebean.bean.EntityBean;
/**
* A NOOP based CQueryCollectionAdd for use with lazy loading many queries where the
* beans loaded into the collection are added to the collection(s) of the parent(s).
*/
class CQueryCollectionAddNoop implements CQueryCollectionAdd {
/**
* Return null as we are not collecting the beans.
*/
@Override
public BeanCollection createEmptyNoParent() {
return null;
}
/**
* Do nothing for this case.
*/
@Override
public void add(BeanCollection> collection, EntityBean bean, boolean withCheck) {
// do nothing
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy