Package com.xpn.xwiki.stats.impl.xwiki
Class AbstractStatsStoreItem
- java.lang.Object
-
- com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
-
- All Implemented Interfaces:
XWikiStatsStoreItem
- Direct Known Subclasses:
DocumentStatsStoreItem
,RefererStatsStoreItem
,VisitStatsStoreItem
public abstract class AbstractStatsStoreItem extends Object implements XWikiStatsStoreItem
Base class of interfaceXWikiStatsStoreItem
.- Since:
- 1.4M2
- Version:
- $Id: 991459ffbf01170dba09a3bcb34cbacd70296798 $
-
-
Field Summary
Fields Modifier and Type Field Description protected XWikiContext
context
The XWiki context clone made when this statistics event occurred.protected String
name
The statistic name.protected int
period
The period.protected Date
periodDate
The period date.protected StatsUtil.PeriodType
periodType
The period type.
-
Constructor Summary
Constructors Constructor Description AbstractStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, XWikiContext context)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
store(List<XWikiStatsStoreItem> statsList)
Store provided statistics into the database.protected abstract void
storeInternal(List<XWikiStatsStoreItem> statsList)
Store provided statistics into the database.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.xpn.xwiki.stats.impl.xwiki.XWikiStatsStoreItem
getId
-
-
-
-
Field Detail
-
context
protected XWikiContext context
The XWiki context clone made when this statistics event occurred.
-
name
protected String name
The statistic name.
-
periodDate
protected Date periodDate
The period date.
-
periodType
protected StatsUtil.PeriodType periodType
The period type.
-
period
protected int period
The period.
-
-
Constructor Detail
-
AbstractStatsStoreItem
public AbstractStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, XWikiContext context)
- Parameters:
name
- the statistic name.periodDate
- the period date.periodType
- the period type.context
- the XWiki context.
-
-
Method Detail
-
store
public void store(List<XWikiStatsStoreItem> statsList)
Description copied from interface:XWikiStatsStoreItem
Store provided statistics into the database.- Specified by:
store
in interfaceXWikiStatsStoreItem
- Parameters:
statsList
- the list of statistics item to store.
-
storeInternal
protected abstract void storeInternal(List<XWikiStatsStoreItem> statsList)
Store provided statistics into the database.- Parameters:
statsList
- the list of statistics item to store.- Since:
- 2.2.4
-
-