Package com.skava.oms.model.assembler
Class CollectionAssembler
java.lang.Object
com.skava.oms.model.assembler.CollectionAssembler
- All Implemented Interfaces:
AbstractEntityAssembler<Collection,
CollectionDTO>
@Component
public class CollectionAssembler
extends Object
implements AbstractEntityAssembler<Collection,CollectionDTO>
This class defines the Collection Response to handle the collection request.
- Author:
- karthikeyan.b02
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoDto
(Collection collection) Create Collection transform object from original collectiontoDto
(Collection collection, boolean loadLazy) toEntity
(CollectionDTO collectionDTO) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.oms.model.assembler.AbstractEntityAssembler
toDtoCollection, toEntityCollection
-
Constructor Details
-
CollectionAssembler
public CollectionAssembler()
-
-
Method Details
-
toDto
Create Collection transform object from original collection- Specified by:
toDto
in interfaceAbstractEntityAssembler<Collection,
CollectionDTO> - Parameters:
collection
- the entity which are going to transform- Returns:
- transform object
-
toDto
-
toEntity
- Specified by:
toEntity
in interfaceAbstractEntityAssembler<Collection,
CollectionDTO>
-