mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
53 lines
704 B
Java
53 lines
704 B
Java
package io.ebean.meta;
|
|
|
|
/**
|
|
* Query execution metrics.
|
|
*/
|
|
public interface MetaQueryMetric extends MetaTimedMetric {
|
|
|
|
/**
|
|
* The type of entity or DTO bean.
|
|
*/
|
|
Class<?> type();
|
|
|
|
/**
|
|
* Migrate to type().
|
|
*/
|
|
@Deprecated
|
|
default Class<?> getType() {
|
|
return type();
|
|
}
|
|
|
|
/**
|
|
* The label for the query (can be null).
|
|
*/
|
|
String label();
|
|
|
|
/**
|
|
* Migrate to label().
|
|
*/
|
|
@Deprecated
|
|
default String getLabel() {
|
|
return label();
|
|
}
|
|
|
|
/**
|
|
* The actual SQL of the query.
|
|
*/
|
|
String sql();
|
|
|
|
/**
|
|
* Migrate to sql().
|
|
*/
|
|
@Deprecated
|
|
default String getSql() {
|
|
return sql();
|
|
}
|
|
|
|
/**
|
|
* Return the hash of the plan.
|
|
*/
|
|
String hash();
|
|
|
|
}
|