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 java.lang.String CHOICE_VOTE_TO_CHOICE
           
static java.lang.String COMMENT
           
static java.lang.String POLL
           
static java.lang.String POLL_ACCOUNT
           
static java.lang.String VOTING_LIST
           
static java.lang.String WEIGHT
           
 
Method Summary
 void addAllChoiceVoteToChoice(java.util.List<VoteToChoice> voteToChoice)
           
 void addChoiceVoteToChoice(VoteToChoice voteToChoice)
           
 void clearChoiceVoteToChoice()
          Vide la Collection de VoteToChoice.
 java.util.List<VoteToChoice> getChoiceVoteToChoice()
           
 VoteToChoice getChoiceVoteToChoice(Choice value)
           
 VoteToChoice getChoiceVoteToChoiceByTopiaId(java.lang.String topiaId)
          Recupère l'attribut choice à partir de son topiaId.
 java.lang.String getComment()
           
 Poll getPoll()
           
 PollAccount getPollAccount()
           
 VotingList getVotingList()
           
 double getWeight()
           
 boolean isChoiceVoteToChoiceEmpty()
           
 void removeChoiceVoteToChoice(VoteToChoice voteToChoice)
           
 void setChoiceVoteToChoice(java.util.List<VoteToChoice> voteToChoice)
           
 void setComment(java.lang.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 java.lang.String WEIGHT
See Also:
Constant Field Values

COMMENT

static final java.lang.String COMMENT
See Also:
Constant Field Values

CHOICE_VOTE_TO_CHOICE

static final java.lang.String CHOICE_VOTE_TO_CHOICE
See Also:
Constant Field Values

POLL

static final java.lang.String POLL
See Also:
Constant Field Values

POLL_ACCOUNT

static final java.lang.String POLL_ACCOUNT
See Also:
Constant Field Values

VOTING_LIST

static final java.lang.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(java.lang.String comment)
Parameters:
comment - La valeur de l'attribut comment à positionner.

getComment

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

addChoiceVoteToChoice

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

addAllChoiceVoteToChoice

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

setChoiceVoteToChoice

void setChoiceVoteToChoice(java.util.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

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

getChoiceVoteToChoiceByTopiaId

VoteToChoice getChoiceVoteToChoiceByTopiaId(java.lang.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 CodeLutin. All Rights Reserved.