org.chorem.pollen.business.converters
Class DataCommentConverter

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

public class DataCommentConverter
extends DataConverter

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

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

Constructor Summary
DataCommentConverter()
           
 
Method Summary
 CommentDTO createCommentDTO(Comment eComment)
          Créer un DTO à partir d'un objet comment.
 List<CommentDTO> createCommentDTOs(Collection<Comment> cComments)
          Retourne une liste de dtos comment à partir d'une collection d'entités.
 void populateCommentEntity(CommentDTO commentDTO, Comment eComment)
          Création d'un commentaire de sondage à partir d'un dto commentaire.
 
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

DataCommentConverter

public DataCommentConverter()
Method Detail

populateCommentEntity

public void populateCommentEntity(CommentDTO commentDTO,
                                  Comment eComment)
                           throws org.nuiton.topia.TopiaException
Création d'un commentaire de sondage à partir d'un dto commentaire.

Parameters:
commentDTO - le dto choix
eComment - l'entité choix
Throws:
org.nuiton.topia.TopiaException

createCommentDTO

public CommentDTO createCommentDTO(Comment eComment)
Créer un DTO à partir d'un objet comment.

Parameters:
eComment - l'objet comment à transformer
Returns:
le commentDTO créé

createCommentDTOs

public List<CommentDTO> createCommentDTOs(Collection<Comment> cComments)
Retourne une liste de dtos comment à partir d'une collection d'entités.

Parameters:
cComments - collection des entités comment
Returns:
la liste des dtos comment


Copyright © 2009-2010 CodeLutin. All Rights Reserved.