mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2359 - Rename plugin api methods with deprecation - QueryPlanMetric
This commit is contained in:
1 parent
8b98335e2e
commit
a15e1ae0a7
3 files changed
+11
-3
No files matched your search
@@ -10,7 +10,15 @@ public interface QueryPlanMetric {
|
|||||||
/**
|
/**
|
||||||
* Return the underlying timed metric.
|
* Return the underlying timed metric.
|
||||||
*/
|
*/
|
||||||
TimedMetric getMetric();
|
TimedMetric metric();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deprecated migrate to metric().
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
default TimedMetric getMetric() {
|
||||||
|
return metric();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Visit the underlying metric.
|
* Visit the underlying metric.
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ abstract class DtoQueryPlanBase implements DtoQueryPlan {
|
|||||||
|
|
||||||
DtoQueryPlanBase(DtoMappingRequest request) {
|
DtoQueryPlanBase(DtoMappingRequest request) {
|
||||||
this.planMetric = request.createMetric();
|
this.planMetric = request.createMetric();
|
||||||
this.metric = planMetric.getMetric();
|
this.metric = planMetric.metric();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ final class DQueryPlanMetric implements QueryPlanMetric {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TimedMetric getMetric() {
|
public TimedMetric metric() {
|
||||||
return metric;
|
return metric;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user