org.openfjord.business.entities
Class QuestionBean
java.lang.Object
|
+--org.openfjord.business.entities.QuestionBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- public abstract class QuestionBean
- extends java.lang.Object
- implements javax.ejb.EntityBean
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuestionBean
public QuestionBean()
ejbCreate
public QuestionPK ejbCreate(int questionType)
throws javax.ejb.CreateException
- Creates a global unique identifier.
- Parameters:
questionType
- indicates which type of question this bean represents
- Returns:
- return null
- Throws:
javax.ejb.CreateException
- if question type not known- See Also:
SurveyElementBean
ejbPostCreate
public void ejbPostCreate(int questionType)
throws javax.ejb.CreateException
javax.ejb.CreateException
ejbRemove
public void ejbRemove()
throws javax.ejb.RemoveException
- Specified by:
ejbRemove
in interface javax.ejb.EntityBean
javax.ejb.RemoveException
setQuestionId
public abstract void setQuestionId(java.lang.String questionId)
setMinValue
public abstract void setMinValue(java.lang.Number minValue)
setMaxValue
public abstract void setMaxValue(java.lang.Number maxValue)
setMeasurement
public abstract void setMeasurement(java.lang.String measurement)
setMultiselect
public abstract void setMultiselect(boolean multiselect)
setAnswers
public abstract void setAnswers(java.util.Collection answers)
setSurveyElement
public abstract void setSurveyElement(SurveyElementLocal surveyElement)
setQuestionType
public abstract void setQuestionType(int questionType)
setChoiceElements
public abstract void setChoiceElements(java.util.Collection choiceElements)
getQuestionId
public abstract java.lang.String getQuestionId()
getMinValue
public abstract java.lang.Number getMinValue()
getMaxValue
public abstract java.lang.Number getMaxValue()
getMeasurement
public abstract java.lang.String getMeasurement()
getMultiselect
public abstract boolean getMultiselect()
getAnswers
public abstract java.util.Collection getAnswers()
getSurveyElement
public abstract SurveyElementLocal getSurveyElement()
getQuestionType
public abstract int getQuestionType()
getChoiceElements
public abstract java.util.Collection getChoiceElements()
ejbLoad
public void ejbLoad()
- Specified by:
ejbLoad
in interface javax.ejb.EntityBean
ejbStore
public void ejbStore()
- Specified by:
ejbStore
in interface javax.ejb.EntityBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate
in interface javax.ejb.EntityBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate
in interface javax.ejb.EntityBean
unsetEntityContext
public void unsetEntityContext()
- Specified by:
unsetEntityContext
in interface javax.ejb.EntityBean
setEntityContext
public void setEntityContext(javax.ejb.EntityContext entityContext)
- Specified by:
setEntityContext
in interface javax.ejb.EntityBean
setData
public void setData(Question Data)
getData
public Question getData()
openFJORD Copyright © 2003 University of Muenster.