io.ebeaninternal.server.core.RelationalQueryEngine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.core;
import io.ebean.RowConsumer;
import io.ebean.RowMapper;
import io.ebean.SqlRow;
import io.ebean.meta.MetricVisitor;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Predicate;
public interface RelationalQueryEngine {
/**
* Return a new SqlRow with appropriate mapping for DB true and optimised binary UUID etc.
*/
SqlRow createSqlRow(int estimateCapacity);
/**
* Find a list of beans using relational query.
*/
List findList(RelationalQueryRequest request);
/**
* Find each query using relational query.
*/
void findEach(RelationalQueryRequest request, Consumer consumer);
/**
* Find each while query using relational query.
*/
void findEach(RelationalQueryRequest request, Predicate consumer);
/**
* Find single attribute.
*/
T findSingleAttribute(RelationalQueryRequest request, Class cls);
/**
* Find single attribute list.
*/
List findSingleAttributeList(RelationalQueryRequest request, Class cls);
/**
* Find one via mapper.
*/
T findOneMapper(RelationalQueryRequest request, RowMapper mapper);
/**
* Find list via mapper.
*/
List findListMapper(RelationalQueryRequest request, RowMapper mapper);
/**
* Find each via raw consumer.
*/
void findEachRow(RelationalQueryRequest request, RowConsumer mapper);
/**
* Collect SQL query execution statistics.
*/
void collect(String label, long exeMicros, int rows);
/**
* Visit the metrics.
*/
void visitMetrics(MetricVisitor visitor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy