All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.mocker.delegate.DelegateOrmQuery Maven / Gradle / Ivy

package io.ebean.mocker.delegate;

import io.ebean.Database;
import io.ebean.ExpressionFactory;
import io.ebean.Query;
import io.ebeaninternal.api.SpiEbeanServer;
import io.ebeaninternal.server.deploy.BeanDescriptor;
import io.ebeaninternal.server.querydefn.DefaultOrmQuery;

public class DelegateOrmQuery extends DefaultOrmQuery {

  public static  DelegateOrmQuery copy(Query source, Database delegateServer) {
    return copy((DefaultOrmQuery) source, delegateServer);
  }

  public static  DelegateOrmQuery copy(DefaultOrmQuery source, Database delegateServer) {
    return new DelegateOrmQuery(source.getBeanDescriptor(), delegateServer, source.getExpressionFactory());
  }

  public DelegateOrmQuery(BeanDescriptor beanType, Database server, ExpressionFactory expressionFactory) {
    super(beanType, (SpiEbeanServer) server, expressionFactory);
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy