fr.paris.lutece.plugins.stock.commons
Class AbstractDTO<E>
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapper
protected org.dozer.Mapper mapper
AbstractDTO
public AbstractDTO()
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 © 2014 Mairie de Paris. All Rights Reserved.