Class AbstractSilverStatisticsDAO
- java.lang.Object
-
- org.silverpeas.core.silverstatistics.volume.dao.AbstractSilverStatisticsDAO
-
- Direct Known Subclasses:
SilverStatisticsDAO
,SilverStatisticsManagerDAO
public class AbstractSilverStatisticsDAO extends Object
Common functionalities for statistics DAO- Author:
- mmoquillon
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractSilverStatisticsDAO.Statements
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSilverStatisticsDAO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static AbstractSilverStatisticsDAO.Statements
computeStatements(String tableName, StatType type, List<String> valueKeys, StatisticsConfig conf)
protected static void
insertData(Connection con, String tableName, StatType type, List<String> valueKeys, StatisticsConfig conf)
Inserts the specified statistics data of the given type into the referred datasource.
-
-
-
Method Detail
-
insertData
protected static void insertData(Connection con, String tableName, StatType type, List<String> valueKeys, StatisticsConfig conf) throws SQLException
Inserts the specified statistics data of the given type into the referred datasource.- Parameters:
con
- a connection with the datasourcetableName
- the table into which the data will be insertedtype
- the type of statisticsvalueKeys
- the data to insertconf
- the statistics configuration.- Throws:
SQLException
- if error occurs while inserting the data into the datasource
-
computeStatements
protected static AbstractSilverStatisticsDAO.Statements computeStatements(String tableName, StatType type, List<String> valueKeys, StatisticsConfig conf)
-
-