Package com.xpn.xwiki.stats.impl.xwiki
Class VisitStatsStoreItem
- java.lang.Object
-
- com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
-
- com.xpn.xwiki.stats.impl.xwiki.VisitStatsStoreItem
-
- All Implemented Interfaces:
XWikiStatsStoreItem
public class VisitStatsStoreItem extends AbstractStatsStoreItem
Store visit statistics into the database.- Since:
- 1.4M2
- Version:
- $Id: 273c3780f64e7288731343c4bc91af5c40f612d6 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
context, name, period, periodDate, periodType
-
-
Constructor Summary
Constructors Constructor Description VisitStatsStoreItem(VisitStats visitStats, XWikiContext context)
Create new instance ofVisitStatsStoreItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
void
storeInternal(List<XWikiStatsStoreItem> stats)
Store provided statistics into the database.-
Methods inherited from class com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
store
-
-
-
-
Constructor Detail
-
VisitStatsStoreItem
public VisitStatsStoreItem(VisitStats visitStats, XWikiContext context)
Create new instance ofVisitStatsStoreItem
.- Parameters:
visitStats
- theVisitStats
object to store.context
- the XWiki context.
-
-
Method Detail
-
getId
public String getId()
- Returns:
- identifier for this type of store item. This value is used to merge same statistics in one database query.
-
storeInternal
public void storeInternal(List<XWikiStatsStoreItem> stats)
Description copied from class:AbstractStatsStoreItem
Store provided statistics into the database.- Specified by:
storeInternal
in classAbstractStatsStoreItem
- Parameters:
stats
- the list of statistics item to store.
-
-