it.firegloves.mempoi.domain.footer.NumberMaxSubFooter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mempoi Show documentation
Show all versions of mempoi Show documentation
A library to simplify export from database to Excel files using Apache POI
/**
* this sub footer shows the maximum vlaue for all the numeric columns in the report
*/
package it.firegloves.mempoi.domain.footer;
public class NumberMaxSubFooter extends NumberFormulaSubFooter {
@Override
protected String getFormula(String colLetter, int firstDataRowIndex, int lastDataRowIndex) {
return "MAX(" + colLetter + firstDataRowIndex + ":" + colLetter + lastDataRowIndex + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy