public class SurveySession
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<SurveyAnswer> |
_answers
The list of answers.
|
protected int |
_id
The session ID.
|
protected java.lang.String |
_ipAddress
The IP address of the person who answered the survey.
|
protected java.lang.String |
_login
The login of the person who answered the survey.
|
protected java.util.Date |
_submittedAt
The date and time at which the person completed the survey.
|
protected java.lang.String |
_surveyId
The survey ID.
|
| Constructor and Description |
|---|
SurveySession()
Build a SurveySession object.
|
SurveySession(int id,
java.lang.String surveyId,
java.lang.String login,
java.lang.String ipAddress,
java.util.Date submittedAt,
java.util.List<SurveyAnswer> answers)
Build a SurveySession object.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends SurveyAnswer> |
getAnswers()
Get the answers.
|
int |
getId()
Get the id.
|
java.lang.String |
getIpAddress()
Get the ipAddress.
|
java.lang.String |
getLogin()
Get the login.
|
java.util.Date |
getSubmittedAt()
Get the submittedAt.
|
java.lang.String |
getSurveyId()
Get the surveyId.
|
void |
setAnswers(java.util.List<SurveyAnswer> answers)
Set the answers.
|
void |
setId(int id)
Set the id.
|
void |
setIpAddress(java.lang.String ipAddress)
Set the ipAddress.
|
void |
setLogin(java.lang.String login)
Set the login.
|
void |
setSubmittedAt(java.util.Date submittedAt)
Set the submittedAt.
|
void |
setSurveyId(java.lang.String surveyId)
Set the surveyId.
|
protected int _id
protected java.lang.String _surveyId
protected java.lang.String _login
protected java.lang.String _ipAddress
protected java.util.Date _submittedAt
protected java.util.List<SurveyAnswer> _answers
public SurveySession()
public SurveySession(int id,
java.lang.String surveyId,
java.lang.String login,
java.lang.String ipAddress,
java.util.Date submittedAt,
java.util.List<SurveyAnswer> answers)
id - the session ID.surveyId - the survey ID.login - the user login.ipAddress - the user IP address.submittedAt - the date of completion.answers - the list of answers.public int getId()
public void setId(int id)
id - the id to setpublic java.lang.String getSurveyId()
public void setSurveyId(java.lang.String surveyId)
surveyId - the surveyId to setpublic java.lang.String getLogin()
public void setLogin(java.lang.String login)
login - the login to setpublic java.lang.String getIpAddress()
public void setIpAddress(java.lang.String ipAddress)
ipAddress - the ipAddress to setpublic java.util.Date getSubmittedAt()
public void setSubmittedAt(java.util.Date submittedAt)
submittedAt - the submittedAt to setpublic java.util.List<? extends SurveyAnswer> getAnswers()
public void setAnswers(java.util.List<SurveyAnswer> answers)
answers - the answers to setCopyright © 2010 Anyware Services. All Rights Reserved.