org.chorem.pollen.business.converters
Class DataChoiceConverter

java.lang.Object
  extended by org.chorem.pollen.business.converters.DataConverter
      extended by org.chorem.pollen.business.converters.DataChoiceConverter

public class DataChoiceConverter
extends DataConverter

Gestion de la conversion des dtos Choice en entité et vice-versa.

Version:
$Id: DataChoiceConverter.java 2615 2009-07-01 13:47:45Z nrannou $
Author:
enema

Constructor Summary
DataChoiceConverter()
           
 
Method Summary
 ChoiceDTO createChoiceDTO(Choice eChoice)
          Création d'un dto choix à partir d'une entité choix.
 java.util.List<ChoiceDTO> createChoiceDTOs(java.util.Collection<Choice> cChoices)
          Retourne une liste de dtos choix à partir d'une collection d'entités.
 void populateChoiceEntity(ChoiceDTO choiceDTO, Choice eChoice)
          Création d'une entité choix à partir d'un dto choix.
 
Methods inherited from class org.chorem.pollen.business.converters.DataConverter
getTransaction, setTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataChoiceConverter

public DataChoiceConverter()
Method Detail

populateChoiceEntity

public void populateChoiceEntity(ChoiceDTO choiceDTO,
                                 Choice eChoice)
                          throws org.nuiton.topia.TopiaException
Création d'une entité choix à partir d'un dto choix.

Parameters:
choiceDTO - Le dto choix
eChoice - L'entité choix
Throws:
org.nuiton.topia.TopiaException

createChoiceDTO

public ChoiceDTO createChoiceDTO(Choice eChoice)
Création d'un dto choix à partir d'une entité choix.

Parameters:
eChoice - L'entité choix
Returns:
Le dto choix

createChoiceDTOs

public java.util.List<ChoiceDTO> createChoiceDTOs(java.util.Collection<Choice> cChoices)
Retourne une liste de dtos choix à partir d'une collection d'entités.

Parameters:
cChoices - Les entités choix
Returns:
la liste des dtos choix


Copyright © 2009-2010 CodeLutin. All Rights Reserved.