Interface RelationalQueryEngine
- All Known Implementing Classes:
DefaultRelationalQueryEngine
public interface RelationalQueryEngine
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if query plan capture is enabled (the master switch).voidCollect SQL query execution statistics.io.ebean.SqlRowcreateSqlRow(int estimateCapacity) Return a new SqlRow with appropriate mapping for DB true and optimised binary UUID etc.voidfindEach(RelationalQueryRequest request, io.ebean.RowConsumer mapper) Find each via raw consumer.<T> voidfindEach(RelationalQueryRequest request, RowReader<T> reader, Predicate<T> consumer) Find each while query using relational query.<T> List<T> findList(RelationalQueryRequest request, RowReader<T> reader) Find a list of beans using relational query.<T> TfindOne(RelationalQueryRequest request, io.ebean.RowMapper<T> mapper) Find one via mapper.<T> TfindSingleAttribute(RelationalQueryRequest request, Class<T> cls) Find single attribute.<T> voidfindSingleAttributeEach(RelationalQueryRequest request, Class<T> cls, Consumer<T> consumer) Find single attribute streaming the result to a consumer.<T> List<T> findSingleAttributeList(RelationalQueryRequest request, Class<T> cls) Find single attribute list.obtainPlan(String label, String sql, SpiEbeanServer server) Obtain (creating and caching if necessary) the query plan for a labelled native SqlQuery, used to capture bind values for database query plan collection.voidqueryPlanInit(io.ebean.meta.QueryPlanInit request, List<io.ebean.meta.MetaQueryPlan> list) Initiate query plan bind capture for matching SqlQuery plans.voidvisitMetrics(io.ebean.meta.MetricVisitor visitor) Visit the metrics.
-
Method Details
-
createSqlRow
io.ebean.SqlRow createSqlRow(int estimateCapacity) Return a new SqlRow with appropriate mapping for DB true and optimised binary UUID etc. -
findList
Find a list of beans using relational query. -
findEach
Find each while query using relational query. -
findEach
Find each via raw consumer. -
findOne
Find one via mapper. -
findSingleAttribute
Find single attribute. -
findSingleAttributeList
Find single attribute list. -
findSingleAttributeEach
<T> void findSingleAttributeEach(RelationalQueryRequest request, Class<T> cls, Consumer<T> consumer) Find single attribute streaming the result to a consumer. -
collect
Collect SQL query execution statistics. -
captureActive
boolean captureActive()Return true if query plan capture is enabled (the master switch). When false no SqlQuery plans are created or cached, so labelled queries incur no extra cost. -
obtainPlan
Obtain (creating and caching if necessary) the query plan for a labelled native SqlQuery, used to capture bind values for database query plan collection. -
queryPlanInit
Initiate query plan bind capture for matching SqlQuery plans. -
visitMetrics
void visitMetrics(io.ebean.meta.MetricVisitor visitor) Visit the metrics.
-