Class AverageResult


  • public class AverageResult
    extends java.lang.Object
    This class is used for average caculation in case of executeScalar() method.
    • Constructor Summary

      Constructors 
      Constructor Description
      AverageResult()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AverageResult

        public AverageResult()
    • Method Detail

      • getCount

        public java.math.BigDecimal getCount()
        The number of items obtained as query result.
        Returns:
        The number of items.
      • setCount

        public void setCount​(java.math.BigDecimal count)
        This method is intended to be called internally.
        Parameters:
        count -
      • getSum

        public java.math.BigDecimal getSum()
        The sum of all the items that are obtained from the query result.
        Returns:
        The sum of all the items.
      • setSum

        public void setSum​(java.math.BigDecimal sum)
        This method is intended to be called internally.
        Parameters:
        sum -
      • getAverage

        public java.math.BigDecimal getAverage()
        Gets the average as a result of the executeScalar method.
        Returns:
        The average result.