mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
36 lines
729 B
Java
36 lines
729 B
Java
package io.ebean.meta;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Query execution statistics for Orm queries.
|
|
*/
|
|
public interface MetaOrmQueryMetric extends MetaQueryMetric {
|
|
|
|
/**
|
|
* Return true if this query plan was tuned by AutoTune.
|
|
*/
|
|
boolean isAutoTuned();
|
|
|
|
/**
|
|
* Return the hash of the sql.
|
|
*/
|
|
String getSqlHash();
|
|
|
|
/**
|
|
* Return the time of the last query executed using this plan.
|
|
*/
|
|
long getLastQueryTime();
|
|
|
|
/**
|
|
* Return the 'origin' points and paths that resulted in the query being
|
|
* executed and the associated number of times the query was executed via that
|
|
* path.
|
|
* <p>
|
|
* This includes direct and lazy loading paths.
|
|
* </p>
|
|
*/
|
|
List<MetaOrmQueryOrigin> getOrigins();
|
|
|
|
}
|