atg.reporting.datacollection
Class SessionScopedLogEntry

java.lang.Object
  extended by atg.reporting.datacollection.LogEntry
      extended by atg.reporting.datacollection.SessionScopedLogEntry
Direct Known Subclasses:
RequestLogEntry, UserEventLogEntry

public class SessionScopedLogEntry
extends atg.reporting.datacollection.LogEntry

A log entry that is associated with a particular session


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
SessionScopedLogEntry(java.lang.Long pId, long pTimestamp, java.lang.String pSessionId, boolean pMember)
          Constucts a SessionScopedLogEntry
SessionScopedLogEntry(java.lang.Long pId, java.lang.String pSessionId, boolean pMember)
          Constucts a SessionScopedLogEntry and time stamps it with the current time.
 
Method Summary
 int getMemberAsDBValue()
          Returns property the value of the property member as a useable value in a database.
 java.lang.String getSessionId()
          Returns property SessionId
 boolean isMember()
          Returns property Member
 void setMember(boolean pMember)
          Sets property Member
 void setSessionId(java.lang.String pSessionId)
          Sets property SessionId
 
Methods inherited from class atg.reporting.datacollection.LogEntry
getId, getTimestamp, getTimestampAsDate, setId, setTimestamp, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

SessionScopedLogEntry

public SessionScopedLogEntry(java.lang.Long pId,
                             long pTimestamp,
                             java.lang.String pSessionId,
                             boolean pMember)
Constucts a SessionScopedLogEntry

Parameters:
pId - the sql table id of the event
pTimestamp - the time of the event
pSessionId - the session id associated with this log entry
pMember - true if the action is coming from a "member"

SessionScopedLogEntry

public SessionScopedLogEntry(java.lang.Long pId,
                             java.lang.String pSessionId,
                             boolean pMember)
Constucts a SessionScopedLogEntry and time stamps it with the current time.

Parameters:
pId - the sql table id of the event
pSessionId - the session id associated with this log entry
pMember - true if the action is coming from a "member"
Method Detail

setSessionId

public void setSessionId(java.lang.String pSessionId)
Sets property SessionId


getSessionId

public java.lang.String getSessionId()
Returns property SessionId


setMember

public void setMember(boolean pMember)
Sets property Member


isMember

public boolean isMember()
Returns property Member


getMemberAsDBValue

public int getMemberAsDBValue()
Returns property the value of the property member as a useable value in a database.

Returns:
1 if property member is true, otherwise 0