#308 - Add BeanFindController

This commit is contained in:
rbygrave committed 2015-06-24 23:12:34 +12:00
commit 17a0933860
17 files changed
+299 -171

No files matched your search

@@ -4,14 +4,10 @@ import com.avaje.ebean.annotation.ConcurrencyMode;
import com.avaje.ebean.config.TableName;
import com.avaje.ebean.config.dbplatform.IdGenerator;
import com.avaje.ebean.config.dbplatform.IdType;
import com.avaje.ebean.event.BeanFinder;
import com.avaje.ebean.event.BeanPersistController;
import com.avaje.ebean.event.BeanPersistListener;
import com.avaje.ebean.event.BeanQueryAdapter;
import com.avaje.ebean.event.*;
import com.avaje.ebeaninternal.server.core.CacheOptions;
import com.avaje.ebeaninternal.server.deploy.BeanDescriptor.EntityType;
import com.avaje.ebeaninternal.server.deploy.*;
import com.avaje.ebeaninternal.server.properties.BeanPropertyInfo;
import javax.persistence.Entity;
import javax.persistence.MappedSuperclass;
@@ -109,7 +105,7 @@ public class DeployBeanDescriptor<T> {
/**
* If set overrides the find implementation. Server side only.
*/
private BeanFinder<T> beanFinder;
private BeanFindController beanFinder;
/**
* The table joins for this bean. Server side only.
@@ -338,7 +334,7 @@ public class DeployBeanDescriptor<T> {
/**
* Return the beanFinder. Usually null unless overriding the finder.
*/
public BeanFinder<T> getBeanFinder() {
public BeanFindController getBeanFinder() {
return beanFinder;
}
@@ -346,7 +342,7 @@ public class DeployBeanDescriptor<T> {
* Set the BeanFinder to use for beans of this type. This is set to override
* the finding from the default.
*/
public void setBeanFinder(BeanFinder<T> beanFinder) {
public void setBeanFinder(BeanFindController beanFinder) {
this.beanFinder = beanFinder;
}