com.xpn.xwiki.stats.impl.xwiki
Class AbstractStatsStoreItem

java.lang.Object
  extended by 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 interface XWikiStatsStoreItem.

Since:
1.4M2
Version:
$Id: 03df420e2029ccf0d041ae89871d3cf2c83191a9 $

Field Summary
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
AbstractStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, XWikiContext context)
           
 
Method Summary
 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 interface XWikiStatsStoreItem
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


Copyright © 2004–2014 XWiki. All rights reserved.