com.xpn.xwiki.stats.impl
Class XWikiStats

java.lang.Object
  extended bycom.xpn.xwiki.objects.BaseElement
      extended bycom.xpn.xwiki.objects.BaseCollection
          extended bycom.xpn.xwiki.stats.impl.XWikiStats
All Implemented Interfaces:
ElementInterface, ObjectInterface, java.io.Serializable
Direct Known Subclasses:
DocumentStats, RefererStats, VisitStats

public class XWikiStats
extends BaseCollection

See Also:
Serialized Form

Field Summary
static int PERIOD_DAY
           
static int PERIOD_MONTH
           
 
Fields inherited from class com.xpn.xwiki.objects.BaseCollection
 
Fields inherited from class com.xpn.xwiki.objects.BaseElement
 
Constructor Summary
XWikiStats()
           
XWikiStats(java.util.Date period, int periodtype)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj)
           
 void fromXML(org.dom4j.Element oel)
           
 int getPageViews()
           
 int getPeriod()
           
 int getPeriodAsInt(java.util.Date date, int type)
           
 int hashCode()
           
 void incPageViews()
           
 void setId(int id)
           
 void setPageViews(int pageViews)
           
 void setPeriod(int period)
           
 org.dom4j.Element toXML(BaseClass bclass)
           
 
Methods inherited from class com.xpn.xwiki.objects.BaseCollection
addField, addPropertyForRemoval, checkField, get, getClassName, getDateValue, getDiff, getField, getFieldList, getFieldsToRemove, getId, getIntValue, getLargeStringValue, getLongValue, getNumber, getProperties, getPropertyList, getPropertyNames, getSetValue, getStringValue, getxWikiClass, merge, put, removeField, safeget, safeput, setClassName, setDateValue, setFields, setFieldsToRemove, setIntValue, setLargeStringValue, setLongValue, setNumber, setSetValue, setStringValue, toString, toXMLString
 
Methods inherited from class com.xpn.xwiki.objects.BaseElement
getName, getPrettyName, setName, setPrettyName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.xpn.xwiki.objects.ElementInterface
getName, setName
 

Field Detail

PERIOD_MONTH

public static int PERIOD_MONTH

PERIOD_DAY

public static int PERIOD_DAY
Constructor Detail

XWikiStats

public XWikiStats()

XWikiStats

public XWikiStats(java.util.Date period,
                  int periodtype)
Method Detail

getPeriod

public int getPeriod()

setPeriod

public void setPeriod(int period)

getPeriodAsInt

public int getPeriodAsInt(java.util.Date date,
                          int type)

getPageViews

public int getPageViews()

setPageViews

public void setPageViews(int pageViews)

incPageViews

public void incPageViews()

hashCode

public int hashCode()
Overrides:
hashCode in class BaseCollection

setId

public void setId(int id)
Overrides:
setId in class BaseCollection

clone

public java.lang.Object clone()
Overrides:
clone in class BaseCollection

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class BaseCollection

toXML

public org.dom4j.Element toXML(BaseClass bclass)
Specified by:
toXML in interface ObjectInterface
Specified by:
toXML in class BaseCollection

fromXML

public void fromXML(org.dom4j.Element oel)
             throws java.lang.ClassNotFoundException,
                    java.lang.IllegalAccessException,
                    java.lang.InstantiationException
Throws:
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException


Copyright 2003 Ludovic Dubost