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 java.lang.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
 java.util.List<E> convertList(java.util.Collection<? extends AbstractDTO<E>> listSource)
          Convert entity list to DTO list.
abstract  java.lang.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 java.lang.Integer getId()
Returns id

Returns:
id

convertList

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

Parameters:
listSource - the list source
Returns:
the list


Copyright © 2012 Mairie de Paris. All Rights Reserved.