![JAR search and dependency download from the Maven repository](/logo.png)
com.avaje.ebeaninternal.server.query.CallableQueryList Maven / Gradle / Ivy
package com.avaje.ebeaninternal.server.query;
import com.avaje.ebean.Transaction;
import com.avaje.ebeaninternal.api.SpiEbeanServer;
import com.avaje.ebeaninternal.api.SpiQuery;
import java.util.List;
import java.util.concurrent.Callable;
/**
* Represent the findList query as a Callable.
*
* @param the entity bean type
*/
public class CallableQueryList extends CallableQuery implements Callable> {
public CallableQueryList(SpiEbeanServer server, SpiQuery query, Transaction t) {
super(server, query, t);
}
/**
* Execute the query returning the resulting List.
*/
public List call() throws Exception {
try {
return server.findList(query, transaction);
} finally {
// cleanup the underlying connection
transaction.end();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy