pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.aggregator
Class AbstractAggregator<T extends AbstractAggregation>

java.lang.Object
  extended by org.torweg.pulse.component.statistics.aggregator.AbstractBaseAggregator
      extended by org.torweg.pulse.component.statistics.aggregator.AbstractAggregator<T>
Type Parameters:
T - the AbstractAggregation this aggregator operates on
Direct Known Subclasses:
AverageTimePerVisitAggregator, CountryPerPIRecordAggregator, CountryPerVisitAggregator, PIRecordCountAggregator, VisitCountAggregator

public abstract class AbstractAggregator<T extends AbstractAggregation>
extends AbstractBaseAggregator

An abstract base class to derive aggregators from.

Version:
$Revision: 1541 $
Author:
Daniel Dietz

Constructor Summary
AbstractAggregator()
           
 
Method Summary
protected  T getAggregation(java.lang.Class<T> clazz, StatisticsServer statisticsServer, Duration duration, org.hibernate.Session s)
          Loads the AbstractAggregation of the given type <T> for the given StatisticsServer and the given Duration.
 
Methods inherited from class org.torweg.pulse.component.statistics.aggregator.AbstractBaseAggregator
aggregate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAggregator

public AbstractAggregator()
Method Detail

getAggregation

protected final T getAggregation(java.lang.Class<T> clazz, StatisticsServer statisticsServer, Duration duration,
                                 org.hibernate.Session s)
Loads the AbstractAggregation of the given type <T> for the given StatisticsServer and the given Duration.

Parameters:
clazz - the Class&lt;T&gt; to be loaded
statisticsServer - the StatisticsServer
duration - the Duration
s - the HibernateTM-Session to be used for loading
Returns:
an AbstractAggregation of the type <T>