com.avaje.ebeaninternal.server.query.CallableQuery 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;
/**
* Base object for making query execution into Callable's.
*
* @param the entity bean type
* @author rbygrave
*/
public abstract class CallableQuery {
protected final SpiQuery query;
protected final SpiEbeanServer server;
protected final Transaction transaction;
public CallableQuery(SpiEbeanServer server, SpiQuery query, Transaction t) {
this.server = server;
this.query = query;
this.transaction = t;
}
public SpiQuery getQuery() {
return query;
}
public Transaction getTransaction() {
return transaction;
}
}