org.chorem.pollen.business.persistence
Class VoteAbstract

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

public abstract class VoteAbstract
extends org.nuiton.topia.persistence.TopiaEntityAbstract
implements Vote

See Also:
Serialized Form

Field Summary
protected  boolean anonymous
          Nom de l'attribut en BD : anonymous
protected  List<VoteToChoice> choiceVoteToChoice
          Nom de l'attribut en BD : choice
protected  String comment
          Nom de l'attribut en BD : comment
protected  PollAccount pollAccount
          Nom de l'attribut en BD : pollAccount
protected  VotingList votingList
          Nom de l'attribut en BD : votingList
protected  double weight
          Nom de l'attribut en BD : weight
 
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.Vote
PROPERTY_ANONYMOUS, PROPERTY_CHOICE_VOTE_TO_CHOICE, PROPERTY_COMMENT, PROPERTY_POLL_ACCOUNT, PROPERTY_VOTING_LIST, PROPERTY_WEIGHT
 
Fields inherited from interface org.nuiton.topia.persistence.TopiaEntity
AGGREGATE, COMPOSITE, TOPIA_CREATE_DATE, TOPIA_ID, TOPIA_VERSION
 
Constructor Summary
VoteAbstract()
           
 
Method Summary
 void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
           
 void addAllChoiceVoteToChoice(List<VoteToChoice> choiceVoteToChoice)
           
 void addChoiceVoteToChoice(VoteToChoice choiceVoteToChoice)
           
 void clearChoiceVoteToChoice()
           
 List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
           
 List<VoteToChoice> getChoiceVoteToChoice()
           
 VoteToChoice getChoiceVoteToChoice(Choice choice)
           
 VoteToChoice getChoiceVoteToChoiceByTopiaId(String topiaId)
           
 String getComment()
           
 List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
           
 PollAccount getPollAccount()
           
 VotingList getVotingList()
           
 double getWeight()
           
 boolean isAnonymous()
           
 boolean isChoiceVoteToChoiceEmpty()
           
 void removeChoiceVoteToChoice(VoteToChoice choiceVoteToChoice)
           
 void setAnonymous(boolean anonymous)
           
 void setChoiceVoteToChoice(List<VoteToChoice> choiceVoteToChoice)
           
 void setComment(String comment)
           
 void setPollAccount(PollAccount pollAccount)
           
 void setVotingList(VotingList votingList)
           
 void setWeight(double weight)
           
 int sizeChoiceVoteToChoice()
           
 
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.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

weight

protected double weight
Nom de l'attribut en BD : weight


comment

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


anonymous

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


choiceVoteToChoice

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


pollAccount

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


votingList

protected VotingList votingList
Nom de l'attribut en BD : votingList

Constructor Detail

VoteAbstract

public VoteAbstract()
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

setWeight

public void setWeight(double weight)
Specified by:
setWeight in interface Vote

getWeight

public double getWeight()
Specified by:
getWeight in interface Vote

setComment

public void setComment(String comment)
Specified by:
setComment in interface Vote

getComment

public String getComment()
Specified by:
getComment in interface Vote

setAnonymous

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

isAnonymous

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

addChoiceVoteToChoice

public void addChoiceVoteToChoice(VoteToChoice choiceVoteToChoice)
Specified by:
addChoiceVoteToChoice in interface Vote

addAllChoiceVoteToChoice

public void addAllChoiceVoteToChoice(List<VoteToChoice> choiceVoteToChoice)
Specified by:
addAllChoiceVoteToChoice in interface Vote

setChoiceVoteToChoice

public void setChoiceVoteToChoice(List<VoteToChoice> choiceVoteToChoice)
Specified by:
setChoiceVoteToChoice in interface Vote

removeChoiceVoteToChoice

public void removeChoiceVoteToChoice(VoteToChoice choiceVoteToChoice)
Specified by:
removeChoiceVoteToChoice in interface Vote

clearChoiceVoteToChoice

public void clearChoiceVoteToChoice()
Specified by:
clearChoiceVoteToChoice in interface Vote

getChoiceVoteToChoice

public List<VoteToChoice> getChoiceVoteToChoice()
Specified by:
getChoiceVoteToChoice in interface Vote

getChoiceVoteToChoiceByTopiaId

public VoteToChoice getChoiceVoteToChoiceByTopiaId(String topiaId)
Specified by:
getChoiceVoteToChoiceByTopiaId in interface Vote

getChoiceVoteToChoice

public VoteToChoice getChoiceVoteToChoice(Choice choice)
Specified by:
getChoiceVoteToChoice in interface Vote

sizeChoiceVoteToChoice

public int sizeChoiceVoteToChoice()
Specified by:
sizeChoiceVoteToChoice in interface Vote

isChoiceVoteToChoiceEmpty

public boolean isChoiceVoteToChoiceEmpty()
Specified by:
isChoiceVoteToChoiceEmpty in interface Vote

setPollAccount

public void setPollAccount(PollAccount pollAccount)
Specified by:
setPollAccount in interface Vote

getPollAccount

public PollAccount getPollAccount()
Specified by:
getPollAccount in interface Vote

setVotingList

public void setVotingList(VotingList votingList)
Specified by:
setVotingList in interface Vote

getVotingList

public VotingList getVotingList()
Specified by:
getVotingList in interface Vote

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.