org.openfjord.business.entities
Class SurveyBean

java.lang.Object
  |
  +--org.openfjord.business.entities.SurveyBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public abstract class SurveyBean
extends java.lang.Object
implements javax.ejb.EntityBean

Title: openFJORD

Description: open Flexible Java Online Research Designer

Copyright:

Company: University of Muenster

Version:
1.0
Author:
Ingo Düppe, Christian Seel
See Also:
Serialized Form

Constructor Summary
SurveyBean()
           
 
Method Summary
 void ejbActivate()
           
 SurveyPK ejbCreate()
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate()
           
 void ejbRemove()
           
 void ejbStore()
           
abstract  java.lang.String getAuthor()
           
abstract  java.lang.String getComment()
           
 Survey getData()
          creates and returns an valueobject of the survey
abstract  int getMaxParticipant()
           
abstract  java.lang.String getName()
           
abstract  java.util.Collection getParticipants()
           
abstract  SurveyElementLocal getRootParagraph()
           
abstract  java.util.Date getStartTime()
           
abstract  int getState()
           
abstract  java.util.Date getStopTime()
           
abstract  SurveyElementLocal getSurveyFooter()
           
abstract  SurveyElementLocal getSurveyHeader()
           
abstract  java.lang.String getSurveyId()
           
abstract  SurveyOwnerLocal getSurveyOwner()
           
abstract  void setAuthor(java.lang.String author)
           
abstract  void setComment(java.lang.String comment)
           
 void setData(Survey survey)
          read out the data of the passed valueobject
 void setEntityContext(javax.ejb.EntityContext entityContext)
           
abstract  void setMaxParticipant(int maxParticipant)
           
abstract  void setName(java.lang.String name)
           
abstract  void setParticipants(java.util.Collection participants)
           
abstract  void setRootParagraph(SurveyElementLocal rootParagraph)
           
abstract  void setStartTime(java.util.Date startTime)
           
abstract  void setState(int state)
           
abstract  void setStopTime(java.util.Date stopTime)
           
abstract  void setSurveyFooter(SurveyElementLocal surveyFooter)
           
abstract  void setSurveyHeader(SurveyElementLocal surveyHeader)
           
abstract  void setSurveyId(java.lang.String surveyId)
           
abstract  void setSurveyOwner(SurveyOwnerLocal surveyOwner)
           
 void unsetEntityContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurveyBean

public SurveyBean()
Method Detail

ejbCreate

public SurveyPK ejbCreate()
                   throws javax.ejb.CreateException
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate()
                   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

setSurveyId

public abstract void setSurveyId(java.lang.String surveyId)

setStartTime

public abstract void setStartTime(java.util.Date startTime)

setStopTime

public abstract void setStopTime(java.util.Date stopTime)

setMaxParticipant

public abstract void setMaxParticipant(int maxParticipant)

setName

public abstract void setName(java.lang.String name)

setAuthor

public abstract void setAuthor(java.lang.String author)

setComment

public abstract void setComment(java.lang.String comment)

setState

public abstract void setState(int state)

setParticipants

public abstract void setParticipants(java.util.Collection participants)

setSurveyOwner

public abstract void setSurveyOwner(SurveyOwnerLocal surveyOwner)

setRootParagraph

public abstract void setRootParagraph(SurveyElementLocal rootParagraph)

setSurveyHeader

public abstract void setSurveyHeader(SurveyElementLocal surveyHeader)

setSurveyFooter

public abstract void setSurveyFooter(SurveyElementLocal surveyFooter)

getSurveyId

public abstract java.lang.String getSurveyId()

getStartTime

public abstract java.util.Date getStartTime()

getStopTime

public abstract java.util.Date getStopTime()

getMaxParticipant

public abstract int getMaxParticipant()

getName

public abstract java.lang.String getName()

getAuthor

public abstract java.lang.String getAuthor()

getComment

public abstract java.lang.String getComment()

getState

public abstract int getState()

getParticipants

public abstract java.util.Collection getParticipants()

getSurveyOwner

public abstract SurveyOwnerLocal getSurveyOwner()

getRootParagraph

public abstract SurveyElementLocal getRootParagraph()

getSurveyHeader

public abstract SurveyElementLocal getSurveyHeader()

getSurveyFooter

public abstract SurveyElementLocal getSurveyFooter()

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

getData

public Survey getData()
creates and returns an valueobject of the survey

Returns:
survey value object
To do:
move method to valueobejct assembler

setData

public void setData(Survey survey)
read out the data of the passed valueobject

Parameters:
survey - survey valueobject with data
To do:
move method to a valueobject assembler


openFJORD Copyright © 2003 University of Muenster.