org.chorem.pollen.business.persistence
Class ChoiceAbstract

java.lang.Object
  extended by org.nuiton.topia.persistence.TopiaEntityAbstract
      extended by org.chorem.pollen.business.persistence.ChoiceAbstract
All Implemented Interfaces:
java.io.Serializable, Choice, org.nuiton.topia.persistence.TopiaEntity
Direct Known Subclasses:
ChoiceImpl

public abstract class ChoiceAbstract
extends org.nuiton.topia.persistence.TopiaEntityAbstract
implements Choice

Implantation POJO pour l'entité Choice.

See Also:
Serialized Form

Field Summary
 java.lang.String description
           
 java.lang.String name
           
 Poll poll
           
 java.lang.Boolean validate
           
 java.util.List<VoteToChoice> voteVoteToChoice
           
 
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.Choice
DESCRIPTION, NAME, POLL, VALIDATE, VOTE_VOTE_TO_CHOICE
 
Constructor Summary
ChoiceAbstract()
          Constructeur de ChoiceAbstract par défaut.
 
Method Summary
 void accept(org.nuiton.topia.persistence.EntityVisitor visitor)
          Envoi via les methodes du visitor l'ensemble des champs de l'entity avec leur nom, type et valeur.
 void addAllVoteVoteToChoice(java.util.List<VoteToChoice> values)
           
 void addVoteVoteToChoice(VoteToChoice value)
           
 void clearVoteVoteToChoice()
          Vide la Collection de VoteToChoice.
 void delete()
           
 java.util.List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
           
 java.util.List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 Poll getPoll()
           
 java.lang.Boolean getValidate()
           
 java.util.List<VoteToChoice> getVoteVoteToChoice()
           
 VoteToChoice getVoteVoteToChoice(Vote value)
           
 VoteToChoice getVoteVoteToChoiceByTopiaId(java.lang.String topiaId)
          Recupère l'attribut vote à partir de son topiaId.
 boolean isVoteVoteToChoiceEmpty()
           
 void removeVoteVoteToChoice(VoteToChoice value)
           
 void setDescription(java.lang.String value)
           
 void setName(java.lang.String value)
           
 void setPoll(Poll value)
           
 void setValidate(java.lang.Boolean value)
           
 void setVoteVoteToChoice(java.util.List<VoteToChoice> values)
           
 int sizeVoteVoteToChoice()
           
 java.lang.String toString()
           
 void update()
           
 
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
 

Field Detail

name

public java.lang.String name

description

public java.lang.String description

validate

public java.lang.Boolean validate

voteVoteToChoice

public java.util.List<VoteToChoice> voteVoteToChoice

poll

public Poll poll
Constructor Detail

ChoiceAbstract

public ChoiceAbstract()
Constructeur de ChoiceAbstract par défaut.

Method Detail

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

setName

public void setName(java.lang.String value)
Specified by:
setName in interface Choice
Parameters:
value - La valeur de l'attribut name à positionner.

getName

public java.lang.String getName()
Specified by:
getName in interface Choice
Returns:
La valeur de l'attribut name.

setDescription

public void setDescription(java.lang.String value)
Specified by:
setDescription in interface Choice
Parameters:
value - La valeur de l'attribut description à positionner.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Choice
Returns:
La valeur de l'attribut description.

setValidate

public void setValidate(java.lang.Boolean value)
Specified by:
setValidate in interface Choice
Parameters:
value - La valeur de l'attribut validate à positionner.

getValidate

public java.lang.Boolean getValidate()
Specified by:
getValidate in interface Choice
Returns:
La valeur de l'attribut validate.

addVoteVoteToChoice

public void addVoteVoteToChoice(VoteToChoice value)
Specified by:
addVoteVoteToChoice in interface Choice
Parameters:
value - L'instance de VoteToChoice à ajouter.

getVoteVoteToChoiceByTopiaId

public VoteToChoice getVoteVoteToChoiceByTopiaId(java.lang.String topiaId)
Description copied from interface: Choice
Recupère l'attribut vote à partir de son topiaId.

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

addAllVoteVoteToChoice

public void addAllVoteVoteToChoice(java.util.List<VoteToChoice> values)
Specified by:
addAllVoteVoteToChoice in interface Choice
Parameters:
values - Les instances de VoteToChoice à ajouter.

setVoteVoteToChoice

public void setVoteVoteToChoice(java.util.List<VoteToChoice> values)
Specified by:
setVoteVoteToChoice in interface Choice
Parameters:
values - La Collection de VoteToChoice à positionner.

removeVoteVoteToChoice

public void removeVoteVoteToChoice(VoteToChoice value)
Specified by:
removeVoteVoteToChoice in interface Choice
Parameters:
value - L'instance de VoteToChoice à retirer.

clearVoteVoteToChoice

public void clearVoteVoteToChoice()
Description copied from interface: Choice
Vide la Collection de VoteToChoice.

Specified by:
clearVoteVoteToChoice in interface Choice

getVoteVoteToChoice

public java.util.List<VoteToChoice> getVoteVoteToChoice()
Specified by:
getVoteVoteToChoice in interface Choice
Returns:
La liste des attributs VoteToChoice.

getVoteVoteToChoice

public VoteToChoice getVoteVoteToChoice(Vote value)
Specified by:
getVoteVoteToChoice in interface Choice
Returns:
L'attribut VoteToChoice associé à la valeur value de l'attribut vote.

sizeVoteVoteToChoice

public int sizeVoteVoteToChoice()
Specified by:
sizeVoteVoteToChoice in interface Choice
Returns:
Le nombre d'éléments de la collection vote.

isVoteVoteToChoiceEmpty

public boolean isVoteVoteToChoiceEmpty()
Specified by:
isVoteVoteToChoiceEmpty in interface Choice
Returns:
true si la collection voteVoteToChoice est vide.

setPoll

public void setPoll(Poll value)
Specified by:
setPoll in interface Choice
Parameters:
value - La valeur de l'attribut poll à positionner.

getPoll

public Poll getPoll()
Specified by:
getPoll in interface Choice
Returns:
La valeur de l'attribut poll.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 CodeLutin. All Rights Reserved.