org.chorem.pollen.business.persistence
Interface Vote

All Superinterfaces:
org.nuiton.topia.persistence.TopiaEntity
All Known Implementing Classes:
VoteAbstract, VoteImpl

public interface Vote
extends org.nuiton.topia.persistence.TopiaEntity


Field Summary
static String ANONYMOUS
           
static String CHOICE_VOTE_TO_CHOICE
           
static String COMMENT
           
static String POLL
           
static String POLL_ACCOUNT
           
static String VOTING_LIST
           
static String WEIGHT
           
 
Method Summary
 void addAllChoiceVoteToChoice(List<VoteToChoice> voteToChoice)
           
 void addChoiceVoteToChoice(VoteToChoice voteToChoice)
           
 void clearChoiceVoteToChoice()
          Vide la Collection de VoteToChoice.
 Boolean getAnonymous()
           
 List<VoteToChoice> getChoiceVoteToChoice()
           
 VoteToChoice getChoiceVoteToChoice(Choice value)
           
 VoteToChoice getChoiceVoteToChoiceByTopiaId(String topiaId)
          Recupère l'attribut choice à partir de son topiaId.
 String getComment()
           
 Poll getPoll()
           
 PollAccount getPollAccount()
           
 VotingList getVotingList()
           
 Double getWeight()
           
 boolean isChoiceVoteToChoiceEmpty()
           
 void removeChoiceVoteToChoice(VoteToChoice voteToChoice)
           
 void setAnonymous(Boolean anonymous)
           
 void setChoiceVoteToChoice(List<VoteToChoice> voteToChoice)
           
 void setComment(String comment)
           
 void setPoll(Poll poll)
           
 void setPollAccount(PollAccount pollAccount)
           
 void setVotingList(VotingList votingList)
           
 void setWeight(Double weight)
           
 int sizeChoiceVoteToChoice()
           
 
Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity
accept, addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, delete, getAggregate, getComposite, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion, update
 

Field Detail

WEIGHT

static final String WEIGHT
See Also:
Constant Field Values

COMMENT

static final String COMMENT
See Also:
Constant Field Values

ANONYMOUS

static final String ANONYMOUS
See Also:
Constant Field Values

CHOICE_VOTE_TO_CHOICE

static final String CHOICE_VOTE_TO_CHOICE
See Also:
Constant Field Values

POLL

static final String POLL
See Also:
Constant Field Values

POLL_ACCOUNT

static final String POLL_ACCOUNT
See Also:
Constant Field Values

VOTING_LIST

static final String VOTING_LIST
See Also:
Constant Field Values
Method Detail

setWeight

void setWeight(Double weight)
Parameters:
weight - La valeur de l'attribut weight à positionner.

getWeight

Double getWeight()
Returns:
La valeur de l'attribut weight.

setComment

void setComment(String comment)
Parameters:
comment - La valeur de l'attribut comment à positionner.

getComment

String getComment()
Returns:
La valeur de l'attribut comment.

setAnonymous

void setAnonymous(Boolean anonymous)
Parameters:
anonymous - La valeur de l'attribut anonymous à positionner.

getAnonymous

Boolean getAnonymous()
Returns:
La valeur de l'attribut anonymous.

addChoiceVoteToChoice

void addChoiceVoteToChoice(VoteToChoice voteToChoice)
Parameters:
voteToChoice - L'instance de VoteToChoice à ajouter.

addAllChoiceVoteToChoice

void addAllChoiceVoteToChoice(List<VoteToChoice> voteToChoice)
Parameters:
voteToChoice - Les instances de VoteToChoice à ajouter.

setChoiceVoteToChoice

void setChoiceVoteToChoice(List<VoteToChoice> voteToChoice)
Parameters:
voteToChoice - La Collection de VoteToChoice à positionner.

removeChoiceVoteToChoice

void removeChoiceVoteToChoice(VoteToChoice voteToChoice)
Parameters:
voteToChoice - L'instance de VoteToChoice à retirer.

clearChoiceVoteToChoice

void clearChoiceVoteToChoice()
Vide la Collection de VoteToChoice.


getChoiceVoteToChoice

List<VoteToChoice> getChoiceVoteToChoice()
Returns:
La liste des attributs VoteToChoice.

getChoiceVoteToChoiceByTopiaId

VoteToChoice getChoiceVoteToChoiceByTopiaId(String topiaId)
Recupère l'attribut choice à partir de son topiaId.

Parameters:
topiaId - le topia id de l'attribut recherchée
Returns:
l'attribut recherché, ou null s'il n'existe pas.

getChoiceVoteToChoice

VoteToChoice getChoiceVoteToChoice(Choice value)
Returns:
L'attribut VoteToChoice associé à la valeur value de l'attribut choice.

sizeChoiceVoteToChoice

int sizeChoiceVoteToChoice()
Returns:
Le nombre d'éléments de la collection choice.

isChoiceVoteToChoiceEmpty

boolean isChoiceVoteToChoiceEmpty()
Returns:
true si la collection choiceVoteToChoice est vide.

setPoll

void setPoll(Poll poll)
Parameters:
poll - La valeur de l'attribut poll à positionner.

getPoll

Poll getPoll()
Returns:
La valeur de l'attribut poll.

setPollAccount

void setPollAccount(PollAccount pollAccount)
Parameters:
pollAccount - La valeur de l'attribut pollAccount à positionner.

getPollAccount

PollAccount getPollAccount()
Returns:
La valeur de l'attribut pollAccount.

setVotingList

void setVotingList(VotingList votingList)
Parameters:
votingList - La valeur de l'attribut votingList à positionner.

getVotingList

VotingList getVotingList()
Returns:
La valeur de l'attribut votingList.


Copyright © 2009-2010 CodeLutin. All Rights Reserved.