org.chorem.pollen.business.persistence
Class PollAbstract

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by org.chorem.pollen.business.persistence.PollAbstract
All Implemented Interfaces:
Serializable, Poll, org.nuiton.topia.persistence.TopiaEntity
Direct Known Subclasses:
PollImpl

public abstract class PollAbstract
extends org.nuiton.topia.persistence.TopiaEntityAbstract
implements Poll

See Also:
Serialized Form

Field Summary
protected  boolean anonymous
          Nom de l'attribut en BD : anonymous
protected  boolean anonymousVoteAllowed
          Nom de l'attribut en BD : anonymousVoteAllowed
protected  Date beginChoiceDate
          Nom de l'attribut en BD : beginChoiceDate
protected  Date beginDate
          Nom de l'attribut en BD : beginDate
protected  List<Choice> choice
          Nom de l'attribut en BD : choice
protected  boolean choiceAddAllowed
          Nom de l'attribut en BD : choiceAddAllowed
protected  ChoiceType choiceType
          Nom de l'attribut en BD : choiceType
protected  boolean closed
          Nom de l'attribut en BD : closed
protected  List<Comment> comment
          Nom de l'attribut en BD : comment
protected  boolean continuousResults
          Nom de l'attribut en BD : continuousResults
protected  PollAccount creator
          Nom de l'attribut en BD : creator
protected  String description
          Nom de l'attribut en BD : description
protected  Date endChoiceDate
          Nom de l'attribut en BD : endChoiceDate
protected  Date endDate
          Nom de l'attribut en BD : endDate
protected  int maxChoiceNb
          Nom de l'attribut en BD : maxChoiceNb
protected  String pollId
          Nom de l'attribut en BD : pollId
protected  PollType pollType
          Nom de l'attribut en BD : pollType
protected  List<PreventRule> preventRule
          Nom de l'attribut en BD : preventRule
protected  boolean publicResults
          Nom de l'attribut en BD : publicResults
protected  List<Result> result
          Nom de l'attribut en BD : result
protected  boolean resultUptodate
          Nom de l'attribut en BD : resultUptodate
protected  String title
          Nom de l'attribut en BD : title
protected  List<Vote> vote
          Nom de l'attribut en BD : vote
protected  VoteCountingType voteCountingType
          Nom de l'attribut en BD : voteCountingType
protected  List<VotingList> votingList
          Nom de l'attribut en BD : votingList
 
Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables
 
Fields inherited from interface org.chorem.pollen.business.persistence.Poll
PROPERTY_ANONYMOUS, PROPERTY_ANONYMOUS_VOTE_ALLOWED, PROPERTY_BEGIN_CHOICE_DATE, PROPERTY_BEGIN_DATE, PROPERTY_CHOICE, PROPERTY_CHOICE_ADD_ALLOWED, PROPERTY_CHOICE_TYPE, PROPERTY_CLOSED, PROPERTY_COMMENT, PROPERTY_CONTINUOUS_RESULTS, PROPERTY_CREATOR, PROPERTY_DESCRIPTION, PROPERTY_END_CHOICE_DATE, PROPERTY_END_DATE, PROPERTY_MAX_CHOICE_NB, PROPERTY_POLL_ID, PROPERTY_POLL_TYPE, PROPERTY_PREVENT_RULE, PROPERTY_PUBLIC_RESULTS, PROPERTY_RESULT, PROPERTY_RESULT_UPTODATE, PROPERTY_TITLE, PROPERTY_VOTE, PROPERTY_VOTE_COUNTING_TYPE, PROPERTY_VOTING_LIST
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
PollAbstract()
           
 
Method Summary
 void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
           
 void addAllChoice(List<Choice> choice)
           
 void addAllComment(List<Comment> comment)
           
 void addAllPreventRule(List<PreventRule> preventRule)
           
 void addAllResult(List<Result> result)
           
 void addAllVote(List<Vote> vote)
           
 void addAllVotingList(List<VotingList> votingList)
           
 void addChoice(Choice choice)
           
 void addComment(Comment comment)
           
 void addPreventRule(PreventRule preventRule)
           
 void addResult(Result result)
           
 void addVote(Vote vote)
           
 void addVotingList(VotingList votingList)
           
 void clearChoice()
           
 void clearComment()
           
 void clearPreventRule()
           
 void clearResult()
           
 void clearVote()
           
 void clearVotingList()
           
 List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
           
 Date getBeginChoiceDate()
           
 Date getBeginDate()
           
 List<Choice> getChoice()
           
 Choice getChoiceByTopiaId(String topiaId)
           
 ChoiceType getChoiceType()
           
 List<Comment> getComment()
           
 Comment getCommentByTopiaId(String topiaId)
           
 List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
           
 PollAccount getCreator()
           
 String getDescription()
           
 Date getEndChoiceDate()
           
 Date getEndDate()
           
 int getMaxChoiceNb()
           
 String getPollId()
           
 PollType getPollType()
           
 List<PreventRule> getPreventRule()
           
 PreventRule getPreventRuleByTopiaId(String topiaId)
           
 List<Result> getResult()
           
 Result getResultByTopiaId(String topiaId)
           
 String getTitle()
           
 List<Vote> getVote()
           
 Vote getVoteByTopiaId(String topiaId)
           
 VoteCountingType getVoteCountingType()
           
 List<VotingList> getVotingList()
           
 VotingList getVotingListByTopiaId(String topiaId)
           
 boolean isAnonymous()
           
 boolean isAnonymousVoteAllowed()
           
 boolean isChoiceAddAllowed()
           
 boolean isChoiceEmpty()
           
 boolean isClosed()
           
 boolean isCommentEmpty()
           
 boolean isContinuousResults()
           
 boolean isPreventRuleEmpty()
           
 boolean isPublicResults()
           
 boolean isResultEmpty()
           
 boolean isResultUptodate()
           
 boolean isVoteEmpty()
           
 boolean isVotingListEmpty()
           
 void removeChoice(Choice choice)
           
 void removeComment(Comment comment)
           
 void removePreventRule(PreventRule preventRule)
           
 void removeResult(Result result)
           
 void removeVote(Vote vote)
           
 void removeVotingList(VotingList votingList)
           
 void setAnonymous(boolean anonymous)
           
 void setAnonymousVoteAllowed(boolean anonymousVoteAllowed)
           
 void setBeginChoiceDate(Date beginChoiceDate)
           
 void setBeginDate(Date beginDate)
           
 void setChoice(List<Choice> choice)
           
 void setChoiceAddAllowed(boolean choiceAddAllowed)
           
 void setChoiceType(ChoiceType choiceType)
           
 void setClosed(boolean closed)
           
 void setComment(List<Comment> comment)
           
 void setContinuousResults(boolean continuousResults)
           
 void setCreator(PollAccount creator)
           
 void setDescription(String description)
           
 void setEndChoiceDate(Date endChoiceDate)
           
 void setEndDate(Date endDate)
           
 void setMaxChoiceNb(int maxChoiceNb)
           
 void setPollId(String pollId)
           
 void setPollType(PollType pollType)
           
 void setPreventRule(List<PreventRule> preventRule)
           
 void setPublicResults(boolean publicResults)
           
 void setResult(List<Result> result)
           
 void setResultUptodate(boolean resultUptodate)
           
 void setTitle(String title)
           
 void setVote(List<Vote> vote)
           
 void setVoteCountingType(VoteCountingType voteCountingType)
           
 void setVotingList(List<VotingList> votingList)
           
 int sizeChoice()
           
 int sizeComment()
           
 int sizePreventRule()
           
 int sizeResult()
           
 int sizeVote()
           
 int sizeVotingList()
           
 
Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getReadPropertyChangeSupport, getReadVetoableChangeSupport, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, getWritePropertyChangeSupport, getWriteVetoableChangeSupport, hashCode, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.chorem.pollen.business.persistence.Poll
getAdminId, getPersonToListByVote, getPollAccounts, getPreventRuleByScope, getVoteByPollAccount, getVoteId, isAddChoiceFinished, isAddChoiceRunning, isAddChoiceStarted, isFinished, isRunning, isStarted
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaCreateDate, getTopiaId, getTopiaVersion, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion
 

Field Detail

pollId

protected String pollId
Nom de l'attribut en BD : pollId


title

protected String title
Nom de l'attribut en BD : title


description

protected String description
Nom de l'attribut en BD : description


beginChoiceDate

protected Date beginChoiceDate
Nom de l'attribut en BD : beginChoiceDate


beginDate

protected Date beginDate
Nom de l'attribut en BD : beginDate


endDate

protected Date endDate
Nom de l'attribut en BD : endDate


maxChoiceNb

protected int maxChoiceNb
Nom de l'attribut en BD : maxChoiceNb


closed

protected boolean closed
Nom de l'attribut en BD : closed


choiceAddAllowed

protected boolean choiceAddAllowed
Nom de l'attribut en BD : choiceAddAllowed


anonymousVoteAllowed

protected boolean anonymousVoteAllowed
Nom de l'attribut en BD : anonymousVoteAllowed


anonymous

protected boolean anonymous
Nom de l'attribut en BD : anonymous


publicResults

protected boolean publicResults
Nom de l'attribut en BD : publicResults


continuousResults

protected boolean continuousResults
Nom de l'attribut en BD : continuousResults


endChoiceDate

protected Date endChoiceDate
Nom de l'attribut en BD : endChoiceDate


resultUptodate

protected boolean resultUptodate
Nom de l'attribut en BD : resultUptodate


vote

protected List<Vote> vote
Nom de l'attribut en BD : vote


choice

protected List<Choice> choice
Nom de l'attribut en BD : choice


result

protected List<Result> result
Nom de l'attribut en BD : result


creator

protected PollAccount creator
Nom de l'attribut en BD : creator


comment

protected List<Comment> comment
Nom de l'attribut en BD : comment


preventRule

protected List<PreventRule> preventRule
Nom de l'attribut en BD : preventRule


votingList

protected List<VotingList> votingList
Nom de l'attribut en BD : votingList


pollType

protected PollType pollType
Nom de l'attribut en BD : pollType


choiceType

protected ChoiceType choiceType
Nom de l'attribut en BD : choiceType


voteCountingType

protected VoteCountingType voteCountingType
Nom de l'attribut en BD : voteCountingType

Constructor Detail

PollAbstract

public PollAbstract()
Method Detail

accept

public void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
            throws org.nuiton.topia.TopiaException
Specified by:
accept in interface org.nuiton.topia.persistence.TopiaEntity
Throws:
org.nuiton.topia.TopiaException

setPollId

public void setPollId(String pollId)
Specified by:
setPollId in interface Poll

getPollId

public String getPollId()
Specified by:
getPollId in interface Poll

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface Poll

getTitle

public String getTitle()
Specified by:
getTitle in interface Poll

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface Poll

getDescription

public String getDescription()
Specified by:
getDescription in interface Poll

setBeginChoiceDate

public void setBeginChoiceDate(Date beginChoiceDate)
Specified by:
setBeginChoiceDate in interface Poll

getBeginChoiceDate

public Date getBeginChoiceDate()
Specified by:
getBeginChoiceDate in interface Poll

setBeginDate

public void setBeginDate(Date beginDate)
Specified by:
setBeginDate in interface Poll

getBeginDate

public Date getBeginDate()
Specified by:
getBeginDate in interface Poll

setEndDate

public void setEndDate(Date endDate)
Specified by:
setEndDate in interface Poll

getEndDate

public Date getEndDate()
Specified by:
getEndDate in interface Poll

setMaxChoiceNb

public void setMaxChoiceNb(int maxChoiceNb)
Specified by:
setMaxChoiceNb in interface Poll

getMaxChoiceNb

public int getMaxChoiceNb()
Specified by:
getMaxChoiceNb in interface Poll

setClosed

public void setClosed(boolean closed)
Specified by:
setClosed in interface Poll

isClosed

public boolean isClosed()
Specified by:
isClosed in interface Poll

setChoiceAddAllowed

public void setChoiceAddAllowed(boolean choiceAddAllowed)
Specified by:
setChoiceAddAllowed in interface Poll

isChoiceAddAllowed

public boolean isChoiceAddAllowed()
Specified by:
isChoiceAddAllowed in interface Poll

setAnonymousVoteAllowed

public void setAnonymousVoteAllowed(boolean anonymousVoteAllowed)
Specified by:
setAnonymousVoteAllowed in interface Poll

isAnonymousVoteAllowed

public boolean isAnonymousVoteAllowed()
Specified by:
isAnonymousVoteAllowed in interface Poll

setAnonymous

public void setAnonymous(boolean anonymous)
Specified by:
setAnonymous in interface Poll

isAnonymous

public boolean isAnonymous()
Specified by:
isAnonymous in interface Poll

setPublicResults

public void setPublicResults(boolean publicResults)
Specified by:
setPublicResults in interface Poll

isPublicResults

public boolean isPublicResults()
Specified by:
isPublicResults in interface Poll

setContinuousResults

public void setContinuousResults(boolean continuousResults)
Specified by:
setContinuousResults in interface Poll

isContinuousResults

public boolean isContinuousResults()
Specified by:
isContinuousResults in interface Poll

setEndChoiceDate

public void setEndChoiceDate(Date endChoiceDate)
Specified by:
setEndChoiceDate in interface Poll

getEndChoiceDate

public Date getEndChoiceDate()
Specified by:
getEndChoiceDate in interface Poll

setResultUptodate

public void setResultUptodate(boolean resultUptodate)
Specified by:
setResultUptodate in interface Poll

isResultUptodate

public boolean isResultUptodate()
Specified by:
isResultUptodate in interface Poll

addVote

public void addVote(Vote vote)
Specified by:
addVote in interface Poll

addAllVote

public void addAllVote(List<Vote> vote)
Specified by:
addAllVote in interface Poll

setVote

public void setVote(List<Vote> vote)
Specified by:
setVote in interface Poll

removeVote

public void removeVote(Vote vote)
Specified by:
removeVote in interface Poll

clearVote

public void clearVote()
Specified by:
clearVote in interface Poll

getVote

public List<Vote> getVote()
Specified by:
getVote in interface Poll

getVoteByTopiaId

public Vote getVoteByTopiaId(String topiaId)
Specified by:
getVoteByTopiaId in interface Poll

sizeVote

public int sizeVote()
Specified by:
sizeVote in interface Poll

isVoteEmpty

public boolean isVoteEmpty()
Specified by:
isVoteEmpty in interface Poll

addChoice

public void addChoice(Choice choice)
Specified by:
addChoice in interface Poll

addAllChoice

public void addAllChoice(List<Choice> choice)
Specified by:
addAllChoice in interface Poll

setChoice

public void setChoice(List<Choice> choice)
Specified by:
setChoice in interface Poll

removeChoice

public void removeChoice(Choice choice)
Specified by:
removeChoice in interface Poll

clearChoice

public void clearChoice()
Specified by:
clearChoice in interface Poll

getChoice

public List<Choice> getChoice()
Specified by:
getChoice in interface Poll

getChoiceByTopiaId

public Choice getChoiceByTopiaId(String topiaId)
Specified by:
getChoiceByTopiaId in interface Poll

sizeChoice

public int sizeChoice()
Specified by:
sizeChoice in interface Poll

isChoiceEmpty

public boolean isChoiceEmpty()
Specified by:
isChoiceEmpty in interface Poll

addResult

public void addResult(Result result)
Specified by:
addResult in interface Poll

addAllResult

public void addAllResult(List<Result> result)
Specified by:
addAllResult in interface Poll

setResult

public void setResult(List<Result> result)
Specified by:
setResult in interface Poll

removeResult

public void removeResult(Result result)
Specified by:
removeResult in interface Poll

clearResult

public void clearResult()
Specified by:
clearResult in interface Poll

getResult

public List<Result> getResult()
Specified by:
getResult in interface Poll

getResultByTopiaId

public Result getResultByTopiaId(String topiaId)
Specified by:
getResultByTopiaId in interface Poll

sizeResult

public int sizeResult()
Specified by:
sizeResult in interface Poll

isResultEmpty

public boolean isResultEmpty()
Specified by:
isResultEmpty in interface Poll

setCreator

public void setCreator(PollAccount creator)
Specified by:
setCreator in interface Poll

getCreator

public PollAccount getCreator()
Specified by:
getCreator in interface Poll

addComment

public void addComment(Comment comment)
Specified by:
addComment in interface Poll

addAllComment

public void addAllComment(List<Comment> comment)
Specified by:
addAllComment in interface Poll

setComment

public void setComment(List<Comment> comment)
Specified by:
setComment in interface Poll

removeComment

public void removeComment(Comment comment)
Specified by:
removeComment in interface Poll

clearComment

public void clearComment()
Specified by:
clearComment in interface Poll

getComment

public List<Comment> getComment()
Specified by:
getComment in interface Poll

getCommentByTopiaId

public Comment getCommentByTopiaId(String topiaId)
Specified by:
getCommentByTopiaId in interface Poll

sizeComment

public int sizeComment()
Specified by:
sizeComment in interface Poll

isCommentEmpty

public boolean isCommentEmpty()
Specified by:
isCommentEmpty in interface Poll

addPreventRule

public void addPreventRule(PreventRule preventRule)
Specified by:
addPreventRule in interface Poll

addAllPreventRule

public void addAllPreventRule(List<PreventRule> preventRule)
Specified by:
addAllPreventRule in interface Poll

setPreventRule

public void setPreventRule(List<PreventRule> preventRule)
Specified by:
setPreventRule in interface Poll

removePreventRule

public void removePreventRule(PreventRule preventRule)
Specified by:
removePreventRule in interface Poll

clearPreventRule

public void clearPreventRule()
Specified by:
clearPreventRule in interface Poll

getPreventRule

public List<PreventRule> getPreventRule()
Specified by:
getPreventRule in interface Poll

getPreventRuleByTopiaId

public PreventRule getPreventRuleByTopiaId(String topiaId)
Specified by:
getPreventRuleByTopiaId in interface Poll

sizePreventRule

public int sizePreventRule()
Specified by:
sizePreventRule in interface Poll

isPreventRuleEmpty

public boolean isPreventRuleEmpty()
Specified by:
isPreventRuleEmpty in interface Poll

addVotingList

public void addVotingList(VotingList votingList)
Specified by:
addVotingList in interface Poll

addAllVotingList

public void addAllVotingList(List<VotingList> votingList)
Specified by:
addAllVotingList in interface Poll

setVotingList

public void setVotingList(List<VotingList> votingList)
Specified by:
setVotingList in interface Poll

removeVotingList

public void removeVotingList(VotingList votingList)
Specified by:
removeVotingList in interface Poll

clearVotingList

public void clearVotingList()
Specified by:
clearVotingList in interface Poll

getVotingList

public List<VotingList> getVotingList()
Specified by:
getVotingList in interface Poll

getVotingListByTopiaId

public VotingList getVotingListByTopiaId(String topiaId)
Specified by:
getVotingListByTopiaId in interface Poll

sizeVotingList

public int sizeVotingList()
Specified by:
sizeVotingList in interface Poll

isVotingListEmpty

public boolean isVotingListEmpty()
Specified by:
isVotingListEmpty in interface Poll

setPollType

public void setPollType(PollType pollType)
Specified by:
setPollType in interface Poll

getPollType

public PollType getPollType()
Specified by:
getPollType in interface Poll

setChoiceType

public void setChoiceType(ChoiceType choiceType)
Specified by:
setChoiceType in interface Poll

getChoiceType

public ChoiceType getChoiceType()
Specified by:
getChoiceType in interface Poll

setVoteCountingType

public void setVoteCountingType(VoteCountingType voteCountingType)
Specified by:
setVoteCountingType in interface Poll

getVoteCountingType

public VoteCountingType getVoteCountingType()
Specified by:
getVoteCountingType in interface Poll

getAggregate

public List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
                                                            throws org.nuiton.topia.TopiaException
Specified by:
getAggregate in interface org.nuiton.topia.persistence.TopiaEntity
Overrides:
getAggregate in class org.nuiton.topia.persistence.TopiaEntityAbstract
Throws:
org.nuiton.topia.TopiaException

getComposite

public List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
                                                            throws org.nuiton.topia.TopiaException
Specified by:
getComposite in interface org.nuiton.topia.persistence.TopiaEntity
Overrides:
getComposite in class org.nuiton.topia.persistence.TopiaEntityAbstract
Throws:
org.nuiton.topia.TopiaException


Copyright © 2009-2012 CodeLutin. All Rights Reserved.