#1331 - ENH: Support Aggregation formula with findSingleAttribute() ... max, min, avg, count and count(distinct ..)

This commit is contained in:
Rob Bygrave
2018-03-06 12:58:43 +13:00
parent ec2c3b13d4
commit 3ca4efc818
23 changed files with 783 additions and 51 deletions
@@ -44,6 +44,13 @@ public class SqlBeanLoad {
return lazyLoading;
}
/**
* Return the DB read context.
*/
public DbReadContext ctx() {
return ctx;
}
/**
* Increment the resultSet index 1.
*/
@@ -86,4 +93,14 @@ public class SqlBeanLoad {
}
}
/**
* Load the given value into the property.
*/
public void load(BeanProperty target, Object dbVal) {
if (!refreshLoading) {
target.setValue(bean, dbVal);
} else {
target.setValueIntercept(bean, dbVal);
}
}
}