|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.stats.ReadStatSession
public class ReadStatSession
Encapsulates a series of read stat occurrences. Each session has an ID and the date it was created.
Note, this class is basically a simple bean and does not handle its own persistence. Other classes should persist it to a db or filesystem.
This class has been marked as serializable since it or subclasses might need to be saved to an external session manager (ie, the HTTP session in an appserver).
Constructor Summary | |
---|---|
ReadStatSession()
|
|
ReadStatSession(long sessionID,
java.lang.String visitorID,
java.util.Date creationDate)
Creates a session given all parameters. |
|
ReadStatSession(java.lang.String visitorID,
java.util.Date creationDate)
Creates an 'unsaved' session given all parameters but the ID. |
Method Summary | |
---|---|
java.util.Date |
getCreationDate()
Returns the creation date of this session. |
long |
getSessionID()
Returns the ID of this session. |
java.lang.String |
getVisitorID()
Returns the visitor ID associated with this read stat session. |
void |
setSessionID(long sessionID)
Sets the session ID for this object. |
java.lang.String |
toString()
Returns a simple string format of this class for debugging purposes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReadStatSession()
public ReadStatSession(long sessionID, java.lang.String visitorID, java.util.Date creationDate)
sessionID
- a unique session ID.creationDate
- the date the session was created.public ReadStatSession(java.lang.String visitorID, java.util.Date creationDate)
creationDate
- the date the session was created.Method Detail |
---|
public long getSessionID()
public void setSessionID(long sessionID)
sessionID
- the unique ID for this object.public java.lang.String getVisitorID()
public java.util.Date getCreationDate()
public java.lang.String toString()
toString
in class java.lang.Object
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |