org.chorem.pollen.business.persistence
Class VoteAbstract
java.lang.Object
org.nuiton.topia.persistence.TopiaEntityAbstract
org.chorem.pollen.business.persistence.VoteAbstract
- All Implemented Interfaces:
- java.io.Serializable, Vote, org.nuiton.topia.persistence.TopiaEntity
- Direct Known Subclasses:
- VoteImpl
public abstract class VoteAbstract
- extends org.nuiton.topia.persistence.TopiaEntityAbstract
- implements Vote
Implantation POJO pour l'entité Vote.
- See Also:
- Serialized Form
| Fields inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract |
readListeners, readVetoables, topiaContext, topiaCreateDate, topiaId, topiaVersion, writeListeners, writeVetoables |
|
Constructor Summary |
VoteAbstract()
Constructeur de VoteAbstract par défaut. |
| Methods inherited from class org.nuiton.topia.persistence.TopiaEntityAbstract |
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, equals, fireOnPostRead, fireOnPostRead, fireOnPostWrite, fireOnPostWrite, fireOnPreRead, fireOnPreWrite, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, hashCode, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaContext, setTopiaCreateDate, setTopiaId, setTopiaVersion |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nuiton.topia.persistence.TopiaEntity |
addPropertyChangeListener, addPropertyChangeListener, addPropertyListener, addPropertyListener, addVetoableChangeListener, addVetoableChangeListener, addVetoableListener, addVetoableListener, getTopiaContext, getTopiaCreateDate, getTopiaId, getTopiaVersion, postCreate, removePropertyChangeListener, removePropertyChangeListener, removePropertyListener, removePropertyListener, removeVetoableChangeListener, removeVetoableChangeListener, removeVetoableListener, removeVetoableListener, setTopiaCreateDate, setTopiaId, setTopiaVersion |
weight
public java.lang.Double weight
comment
public java.lang.String comment
anonymous
public java.lang.Boolean anonymous
choiceVoteToChoice
public java.util.List<VoteToChoice> choiceVoteToChoice
poll
public Poll poll
pollAccount
public PollAccount pollAccount
votingList
public VotingList votingList
VoteAbstract
public VoteAbstract()
- Constructeur de VoteAbstract par défaut.
update
public void update()
throws org.nuiton.topia.TopiaException
- Specified by:
update in interface org.nuiton.topia.persistence.TopiaEntity- Overrides:
update in class org.nuiton.topia.persistence.TopiaEntityAbstract
- Throws:
org.nuiton.topia.TopiaException
delete
public void delete()
throws org.nuiton.topia.TopiaException
- Specified by:
delete in interface org.nuiton.topia.persistence.TopiaEntity- Overrides:
delete in class org.nuiton.topia.persistence.TopiaEntityAbstract
- Throws:
org.nuiton.topia.TopiaException
accept
public void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
throws org.nuiton.topia.TopiaException
- Envoi via les methodes du visitor l'ensemble des champs de l'entity
avec leur nom, type et valeur.
- Specified by:
accept in interface org.nuiton.topia.persistence.TopiaEntity
- Parameters:
visitor - le visiteur de l'entite.
- Throws:
org.nuiton.topia.TopiaException - if any pb while visit
getAggregate
public java.util.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 java.util.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
setWeight
public void setWeight(java.lang.Double value)
- Specified by:
setWeight in interface Vote
- Parameters:
value - La valeur de l'attribut weight à positionner.
getWeight
public java.lang.Double getWeight()
- Specified by:
getWeight in interface Vote
- Returns:
- La valeur de l'attribut weight.
setComment
public void setComment(java.lang.String value)
- Specified by:
setComment in interface Vote
- Parameters:
value - La valeur de l'attribut comment à positionner.
getComment
public java.lang.String getComment()
- Specified by:
getComment in interface Vote
- Returns:
- La valeur de l'attribut comment.
setAnonymous
public void setAnonymous(java.lang.Boolean value)
- Specified by:
setAnonymous in interface Vote
- Parameters:
value - La valeur de l'attribut anonymous à positionner.
getAnonymous
public java.lang.Boolean getAnonymous()
- Specified by:
getAnonymous in interface Vote
- Returns:
- La valeur de l'attribut anonymous.
addChoiceVoteToChoice
public void addChoiceVoteToChoice(VoteToChoice value)
- Specified by:
addChoiceVoteToChoice in interface Vote
- Parameters:
value - L'instance de VoteToChoice à ajouter.
getChoiceVoteToChoiceByTopiaId
public VoteToChoice getChoiceVoteToChoiceByTopiaId(java.lang.String topiaId)
- Description copied from interface:
Vote
- Recupère l'attribut choice à partir de son topiaId.
- Specified by:
getChoiceVoteToChoiceByTopiaId in interface Vote
- Parameters:
topiaId - le topia id de l'attribut recherchée
- Returns:
- l'attribut recherché, ou
null s'il n'existe pas.
addAllChoiceVoteToChoice
public void addAllChoiceVoteToChoice(java.util.List<VoteToChoice> values)
- Specified by:
addAllChoiceVoteToChoice in interface Vote
- Parameters:
values - Les instances de VoteToChoice à ajouter.
setChoiceVoteToChoice
public void setChoiceVoteToChoice(java.util.List<VoteToChoice> values)
- Specified by:
setChoiceVoteToChoice in interface Vote
- Parameters:
values - La Collection de VoteToChoice à positionner.
removeChoiceVoteToChoice
public void removeChoiceVoteToChoice(VoteToChoice value)
- Specified by:
removeChoiceVoteToChoice in interface Vote
- Parameters:
value - L'instance de VoteToChoice à retirer.
clearChoiceVoteToChoice
public void clearChoiceVoteToChoice()
- Description copied from interface:
Vote
- Vide la Collection de VoteToChoice.
- Specified by:
clearChoiceVoteToChoice in interface Vote
getChoiceVoteToChoice
public java.util.List<VoteToChoice> getChoiceVoteToChoice()
- Specified by:
getChoiceVoteToChoice in interface Vote
- Returns:
- La liste des attributs VoteToChoice.
getChoiceVoteToChoice
public VoteToChoice getChoiceVoteToChoice(Choice value)
- Specified by:
getChoiceVoteToChoice in interface Vote
- Returns:
- L'attribut VoteToChoice associé à la valeur
value de l'attribut choice.
sizeChoiceVoteToChoice
public int sizeChoiceVoteToChoice()
- Specified by:
sizeChoiceVoteToChoice in interface Vote
- Returns:
- Le nombre d'éléments de la collection choice.
isChoiceVoteToChoiceEmpty
public boolean isChoiceVoteToChoiceEmpty()
- Specified by:
isChoiceVoteToChoiceEmpty in interface Vote
- Returns:
true si la collection choiceVoteToChoice est vide.
setPoll
public void setPoll(Poll value)
- Specified by:
setPoll in interface Vote
- Parameters:
value - La valeur de l'attribut poll à positionner.
getPoll
public Poll getPoll()
- Specified by:
getPoll in interface Vote
- Returns:
- La valeur de l'attribut poll.
setPollAccount
public void setPollAccount(PollAccount value)
- Specified by:
setPollAccount in interface Vote
- Parameters:
value - La valeur de l'attribut pollAccount à positionner.
getPollAccount
public PollAccount getPollAccount()
- Specified by:
getPollAccount in interface Vote
- Returns:
- La valeur de l'attribut pollAccount.
setVotingList
public void setVotingList(VotingList value)
- Specified by:
setVotingList in interface Vote
- Parameters:
value - La valeur de l'attribut votingList à positionner.
getVotingList
public VotingList getVotingList()
- Specified by:
getVotingList in interface Vote
- Returns:
- La valeur de l'attribut votingList.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2009-2010 CodeLutin. All Rights Reserved.