fr.paris.lutece.plugins.stock.commons
Class AbstractDTO<E>

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.commons.AbstractDTO<E>
Type Parameters:
E - the element type

public abstract class AbstractDTO<E>
extends Object

Classe abstraite des DTO.

Author:
abataille

Field Summary
protected  org.dozer.Mapper mapper
           
 
Constructor Summary
AbstractDTO()
           
 
Method Summary
abstract  E convert()
          Convert a DTO to entity
 List<E> convertList(Collection<? extends AbstractDTO<E>> listSource)
          Convert entity list to DTO list.
abstract  Integer getId()
          Returns id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapper

protected org.dozer.Mapper mapper
Constructor Detail

AbstractDTO

public AbstractDTO()
Method Detail

convert

public abstract E convert()
Convert a DTO to entity

Returns:
the e entity

getId

public abstract Integer getId()
Returns id

Returns:
id

convertList

public List<E> convertList(Collection<? extends AbstractDTO<E>> listSource)
Convert entity list to DTO list.

Parameters:
listSource - the list source
Returns:
the list


Copyright © 2013 Mairie de Paris. All Rights Reserved.