|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.survey.jsp.tags.SurveyData
public class SurveyData
Constructor Summary | |
---|---|
SurveyData(DataBitStorage dataBitStorage,
LoginInfo loginInfo)
|
|
SurveyData(DataBitStorage dataBitStorage,
LoginInfo loginInfo,
javax.servlet.jsp.PageContext pageContext)
|
|
SurveyData(java.lang.String databaseName,
LoginInfo loginInfo)
|
|
SurveyData(java.lang.String databaseName,
LoginInfo loginInfo,
javax.servlet.jsp.PageContext pageContext)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getAllUsersData(java.lang.String table,
java.lang.String variableName)
Get a list of all the answers that all users have put in for a specific variable. |
java.lang.String |
getData(java.lang.String table,
java.lang.String variableName)
Get one answer or bit of user data from the database for the logged in user. |
java.lang.String[] |
getData(java.lang.String table,
java.lang.String[] variableNames)
Get several answer or bit of user data from the database for the logged in user. |
java.lang.String[] |
getData(java.lang.String table,
java.lang.String[] variableNames,
java.lang.String repeatedMeasureVariable,
java.lang.Object repeatedMeasureValue)
Get several answer or bit of user data from the database for the logged in user. |
java.lang.String |
getData(java.lang.String table,
java.lang.String variableName,
java.lang.String repeatedMeasureVariable,
java.lang.Number repeatedMeasureValue)
Get several answer or bit of user data from the database for the logged in user. |
java.lang.String |
getData(java.lang.String table,
java.lang.String variableName,
java.lang.String repeatedMeasureVariable,
java.lang.String repeatedMeasureValue)
|
int |
getNumberOfUsers()
|
javax.servlet.jsp.PageContext |
getPageContext()
|
RandomizeGenerator |
getRandomizer()
|
DataTableModel |
getTable(java.lang.String table)
For advanced usage, you can get a full table straight from the database. |
java.lang.String |
getUserHostName()
|
java.lang.String |
getUserID()
|
boolean |
hasHostNameBeenUsedBefore()
|
boolean |
isLoggedIn()
|
void |
redirectTo(java.lang.String pageName)
|
void |
saveUserHostName()
|
boolean |
setData(java.lang.String table,
java.lang.String variableName,
java.lang.Object value)
|
boolean |
setData(java.lang.String table,
java.lang.String variableName,
java.lang.String repeatedMeasureVariable,
java.lang.Object repeatedMeasureValue,
java.lang.Object value)
|
void |
uninit()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SurveyData(DataBitStorage dataBitStorage, LoginInfo loginInfo)
public SurveyData(DataBitStorage dataBitStorage, LoginInfo loginInfo, javax.servlet.jsp.PageContext pageContext)
public SurveyData(java.lang.String databaseName, LoginInfo loginInfo)
public SurveyData(java.lang.String databaseName, LoginInfo loginInfo, javax.servlet.jsp.PageContext pageContext)
Method Detail |
---|
public java.lang.String getUserID()
public boolean isLoggedIn()
public java.lang.String getUserHostName()
public void saveUserHostName()
public boolean hasHostNameBeenUsedBefore()
public int getNumberOfUsers()
public DataTableModel getTable(java.lang.String table)
table
-
public java.lang.String getData(java.lang.String table, java.lang.String variableName)
table
- the table in the database to pull the data fromvariableName
- the name of the variable in the table
public java.util.List<java.lang.String> getAllUsersData(java.lang.String table, java.lang.String variableName)
table
- variableName
-
public boolean setData(java.lang.String table, java.lang.String variableName, java.lang.Object value)
public boolean setData(java.lang.String table, java.lang.String variableName, java.lang.String repeatedMeasureVariable, java.lang.Object repeatedMeasureValue, java.lang.Object value)
public java.lang.String[] getData(java.lang.String table, java.lang.String[] variableNames)
table
- the table in the database to pull the data fromvariableNames
- the names of the variable in the table
public java.lang.String[] getData(java.lang.String table, java.lang.String[] variableNames, java.lang.String repeatedMeasureVariable, java.lang.Object repeatedMeasureValue)
table
- the table in the database to pull the data fromvariableNames
- the names of the variable in the table
public java.lang.String getData(java.lang.String table, java.lang.String variableName, java.lang.String repeatedMeasureVariable, java.lang.Number repeatedMeasureValue)
table
- the table in the database to pull the data fromvariableNames
- the names of the variable in the table
public java.lang.String getData(java.lang.String table, java.lang.String variableName, java.lang.String repeatedMeasureVariable, java.lang.String repeatedMeasureValue)
public RandomizeGenerator getRandomizer()
public void uninit()
public javax.servlet.jsp.PageContext getPageContext()
public void redirectTo(java.lang.String pageName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |