org.chorem.pollen.business.persistence
Class VotingListAbstract

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

public abstract class VotingListAbstract
extends org.nuiton.topia.persistence.TopiaEntityAbstract
implements VotingList

Implantation POJO pour l'entité VotingList.

See Also:
Serialized Form

Field Summary
 java.lang.String name
           
 Poll poll
           
 java.util.List<PersonToList> pollAccountPersonToList
           
 Vote vote
           
 java.lang.Double 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.VotingList
NAME, POLL, POLL_ACCOUNT_PERSON_TO_LIST, VOTE, WEIGHT
 
Constructor Summary
VotingListAbstract()
          Constructeur de VotingListAbstract 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 addAllPollAccountPersonToList(java.util.List<PersonToList> values)
           
 void addPollAccountPersonToList(PersonToList value)
           
 void clearPollAccountPersonToList()
          Vide la Collection de PersonToList.
 void delete()
           
 java.util.List<org.nuiton.topia.persistence.TopiaEntity> getAggregate()
           
 java.util.List<org.nuiton.topia.persistence.TopiaEntity> getComposite()
           
 java.lang.String getName()
           
 Poll getPoll()
           
 java.util.List<PersonToList> getPollAccountPersonToList()
           
 PersonToList getPollAccountPersonToList(PollAccount value)
           
 PersonToList getPollAccountPersonToListByTopiaId(java.lang.String topiaId)
          Recupère l'attribut pollAccount à partir de son topiaId.
 Vote getVote()
           
 java.lang.Double getWeight()
           
 boolean isPollAccountPersonToListEmpty()
           
 void removePollAccountPersonToList(PersonToList value)
           
 void setName(java.lang.String value)
           
 void setPoll(Poll value)
           
 void setPollAccountPersonToList(java.util.List<PersonToList> values)
           
 void setVote(Vote value)
           
 void setWeight(java.lang.Double value)
           
 int sizePollAccountPersonToList()
           
 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

weight

public java.lang.Double weight

pollAccountPersonToList

public java.util.List<PersonToList> pollAccountPersonToList

poll

public Poll poll

vote

public Vote vote
Constructor Detail

VotingListAbstract

public VotingListAbstract()
Constructeur de VotingListAbstract 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 VotingList
Parameters:
value - La valeur de l'attribut name à positionner.

getName

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

setWeight

public void setWeight(java.lang.Double value)
Specified by:
setWeight in interface VotingList
Parameters:
value - La valeur de l'attribut weight à positionner.

getWeight

public java.lang.Double getWeight()
Specified by:
getWeight in interface VotingList
Returns:
La valeur de l'attribut weight.

addPollAccountPersonToList

public void addPollAccountPersonToList(PersonToList value)
Specified by:
addPollAccountPersonToList in interface VotingList
Parameters:
value - L'instance de PersonToList à ajouter.

getPollAccountPersonToListByTopiaId

public PersonToList getPollAccountPersonToListByTopiaId(java.lang.String topiaId)
Description copied from interface: VotingList
Recupère l'attribut pollAccount à partir de son topiaId.

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

addAllPollAccountPersonToList

public void addAllPollAccountPersonToList(java.util.List<PersonToList> values)
Specified by:
addAllPollAccountPersonToList in interface VotingList
Parameters:
values - Les instances de PersonToList à ajouter.

setPollAccountPersonToList

public void setPollAccountPersonToList(java.util.List<PersonToList> values)
Specified by:
setPollAccountPersonToList in interface VotingList
Parameters:
values - La Collection de PersonToList à positionner.

removePollAccountPersonToList

public void removePollAccountPersonToList(PersonToList value)
Specified by:
removePollAccountPersonToList in interface VotingList
Parameters:
value - L'instance de PersonToList à retirer.

clearPollAccountPersonToList

public void clearPollAccountPersonToList()
Description copied from interface: VotingList
Vide la Collection de PersonToList.

Specified by:
clearPollAccountPersonToList in interface VotingList

getPollAccountPersonToList

public java.util.List<PersonToList> getPollAccountPersonToList()
Specified by:
getPollAccountPersonToList in interface VotingList
Returns:
La liste des attributs PersonToList.

getPollAccountPersonToList

public PersonToList getPollAccountPersonToList(PollAccount value)
Specified by:
getPollAccountPersonToList in interface VotingList
Returns:
L'attribut PersonToList associé à la valeur value de l'attribut pollAccount.

sizePollAccountPersonToList

public int sizePollAccountPersonToList()
Specified by:
sizePollAccountPersonToList in interface VotingList
Returns:
Le nombre d'éléments de la collection pollAccount.

isPollAccountPersonToListEmpty

public boolean isPollAccountPersonToListEmpty()
Specified by:
isPollAccountPersonToListEmpty in interface VotingList
Returns:
true si la collection pollAccountPersonToList est vide.

setPoll

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

getPoll

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

setVote

public void setVote(Vote value)
Specified by:
setVote in interface VotingList
Parameters:
value - La valeur de l'attribut vote à positionner.

getVote

public Vote getVote()
Specified by:
getVote in interface VotingList
Returns:
La valeur de l'attribut vote.

toString

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


Copyright © 2009 CodeLutin. All Rights Reserved.