Package network.oxalis.statistics.jdbc
Class RawStatisticsRepositoryJdbcImpl
- java.lang.Object
-
- network.oxalis.statistics.jdbc.RawStatisticsRepositoryJdbcImpl
-
- All Implemented Interfaces:
RawStatisticsRepository
- Direct Known Subclasses:
RawStatisticsRepositoryHSqlImpl,RawStatisticsRepositoryMsSqlImpl,RawStatisticsRepositoryMySqlImpl,RawStatisticsRepositoryOracleImpl
public abstract class RawStatisticsRepositoryJdbcImpl extends Object implements RawStatisticsRepository
Basic JDBC implementation of StatisticsRepository component supplied with Oxalis. In theory, you may use any implementation of StatisticsRepository you like, however; in real life, most people will probably stick with the SQL database.- Author:
- steinar
-
-
Field Summary
Fields Modifier and Type Field Description protected JdbcTxManagerjdbcTxManagerstatic StringRAW_STATS_TABLE_NAME
-
Constructor Summary
Constructors Constructor Description RawStatisticsRepositoryJdbcImpl(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.Integerpersist(RawStatistics rawStatistics)Persists raw statistics into the DBMS via JDBC, no caching is utilized.
-
-
-
Field Detail
-
RAW_STATS_TABLE_NAME
public static final String RAW_STATS_TABLE_NAME
- See Also:
- Constant Field Values
-
jdbcTxManager
protected final JdbcTxManager jdbcTxManager
-
-
Constructor Detail
-
RawStatisticsRepositoryJdbcImpl
public RawStatisticsRepositoryJdbcImpl(JdbcTxManager jdbcTxManager)
-
-
Method Detail
-
persist
public Integer persist(RawStatistics rawStatistics)
Persists raw statistics into the DBMS via JDBC, no caching is utilized.- Specified by:
persistin interfaceRawStatisticsRepository
-
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
-
-