com.avaje.ebeaninternal.server.query.SqlQueryFutureList Maven / Gradle / Ivy
package com.avaje.ebeaninternal.server.query;
import java.util.List;
import java.util.concurrent.FutureTask;
import com.avaje.ebean.SqlFutureList;
import com.avaje.ebean.SqlQuery;
import com.avaje.ebean.SqlRow;
/**
* Default implementation of SqlFutureList.
*
* @author rbygrave
*/
public class SqlQueryFutureList extends BaseFuture> implements SqlFutureList {
private final SqlQuery query;
public SqlQueryFutureList(SqlQuery query, FutureTask> futureTask) {
super(futureTask);
this.query = query;
}
public SqlQuery getQuery() {
return query;
}
public boolean cancel(boolean mayInterruptIfRunning) {
query.cancel();
return super.cancel(mayInterruptIfRunning);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy