com.solidstategroup.form
Class FormStats

java.lang.Object
  extended by com.solidstategroup.form.FormStats

public class FormStats
extends java.lang.Object

User: Phil Date: 27-Apr-2005 Time: 15:42:33


Constructor Summary
FormStats(int formTemplateId, int total)
           
 
Method Summary
 FormAnswerStat getAnswerStat(int ssgObjTypeMetaDataId, java.lang.String answerValue)
           
 java.util.Map getAnswerStats()
           
 int getFormTemplateId()
           
 int getNumberOfAnswers(int ssgObjTypeMetaDataId)
          is this useful.
 int getTotal()
           
 void setAnswerStats(java.util.Map answerStats)
           
 void setFormTemplateId(int formTemplateId)
           
 void setTotal(int total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormStats

public FormStats(int formTemplateId,
                 int total)
Method Detail

getFormTemplateId

public int getFormTemplateId()

setFormTemplateId

public void setFormTemplateId(int formTemplateId)

getTotal

public int getTotal()

setTotal

public void setTotal(int total)

getAnswerStats

public java.util.Map getAnswerStats()

setAnswerStats

public void setAnswerStats(java.util.Map answerStats)

getNumberOfAnswers

public int getNumberOfAnswers(int ssgObjTypeMetaDataId)
is this useful. Basically we have a problem in that it is possible for the stats be incorrect in so much as what if questions have been added once the form has already been submitted a number of times? the count of answers will be out of sync with the number of forms submmitted

Parameters:
ssgObjTypeMetaDataId -
Returns:

getAnswerStat

public FormAnswerStat getAnswerStat(int ssgObjTypeMetaDataId,
                                    java.lang.String answerValue)