#1673 - ENH: Support ProfileLocation on DtoQuery including via orm query.asDto()

This commit is contained in:
rob bygrave
2019-04-12 02:01:01 +12:00
parent 46c66b7169
commit 2639e799c5
14 changed files with 117 additions and 35 deletions
@@ -1,15 +1,19 @@
package io.ebeaninternal.server.profile;
import io.ebean.ProfileLocation;
class DQueryPlanMeta {
private final Class<?> type;
private final String label;
private final ProfileLocation profileLocation;
private final String name;
private final String sql;
DQueryPlanMeta(Class<?> type, String label, String sql) {
DQueryPlanMeta(Class<?> type, String label, ProfileLocation profileLocation, String sql) {
this.type = type;
this.label = label;
this.profileLocation = profileLocation;
this.sql = sql;
String name = type.getSimpleName();
if (label != null) {
@@ -30,6 +34,10 @@ class DQueryPlanMeta {
return label;
}
public ProfileLocation getProfileLocation() {
return profileLocation;
}
public String getSql() {
return sql;
}