public class AverageResult
extends java.lang.Object
Constructor | Description |
---|---|
AverageResult() |
Modifier and Type | Method | Description |
---|---|---|
java.math.BigDecimal |
getAverage() |
Gets the average as a result of the executeScalar method.
|
java.math.BigDecimal |
getCount() |
The number of items obtained as query result.
|
java.math.BigDecimal |
getSum() |
The sum of all the items that are obtained from the query result.
|
void |
setCount(java.math.BigDecimal count) |
This method is intended to be called internally.
|
void |
setSum(java.math.BigDecimal sum) |
This method is intended to be called internally.
|
public java.math.BigDecimal getCount()
public void setCount(java.math.BigDecimal count)
count
- public java.math.BigDecimal getSum()
public void setSum(java.math.BigDecimal sum)
sum
- public java.math.BigDecimal getAverage()