Package network.oxalis.statistics.jdbc
Class RawStatisticsRepositoryHSqlImpl
- java.lang.Object
-
- network.oxalis.statistics.jdbc.RawStatisticsRepositoryJdbcImpl
-
- network.oxalis.statistics.jdbc.RawStatisticsRepositoryHSqlImpl
-
- All Implemented Interfaces:
RawStatisticsRepository
public class RawStatisticsRepositoryHSqlImpl extends RawStatisticsRepositoryJdbcImpl
This is RawStatisticsRepository implementation for running the statistics database on MySql backend, through JDBC.- Author:
- steinar, zeko78
-
-
Field Summary
-
Fields inherited from class network.oxalis.statistics.jdbc.RawStatisticsRepositoryJdbcImpl
jdbcTxManager, RAW_STATS_TABLE_NAME
-
-
Constructor Summary
Constructors Constructor Description RawStatisticsRepositoryHSqlImpl(JdbcTxManager jdbcTxManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfetchAndTransformRawStatistics(StatisticsTransformer transformer, Date start, Date end, StatisticsGranularity granularity)Retrieves statistics and transforms it using the supplied transformer.StringgetPersistSqlQueryText()Composes the SQL query to persist raw statistics into the DBMS.StringgetRawStatisticsSqlQueryText(StatisticsGranularity granularity)Composes the SQL query for retrieval of statistical data between a start and end data, with a granularity as supplied.-
Methods inherited from class network.oxalis.statistics.jdbc.RawStatisticsRepositoryJdbcImpl
persist
-
-
-
-
Constructor Detail
-
RawStatisticsRepositoryHSqlImpl
@Inject public RawStatisticsRepositoryHSqlImpl(JdbcTxManager jdbcTxManager)
-
-
Method Detail
-
getPersistSqlQueryText
public String getPersistSqlQueryText()
Composes the SQL query to persist raw statistics into the DBMS.
-
getRawStatisticsSqlQueryText
public String getRawStatisticsSqlQueryText(StatisticsGranularity granularity)
Composes the SQL query for retrieval of statistical data between a start and end data, with a granularity as supplied.- Parameters:
granularity- the granularity of the statics period reported.
-
fetchAndTransformRawStatistics
public void fetchAndTransformRawStatistics(StatisticsTransformer transformer, Date start, Date end, StatisticsGranularity granularity)
Retrieves statistics and transforms it using the supplied transformer.- Specified by:
fetchAndTransformRawStatisticsin interfaceRawStatisticsRepository- Overrides:
fetchAndTransformRawStatisticsin classRawStatisticsRepositoryJdbcImpl
-
-