Interface AbstractEntityAssembler<P,T>

All Known Implementing Classes:
CollectionAssembler, CollectionAttributeAssembler, CollectionPropertiesAssembler, OrderAssembler

public interface AbstractEntityAssembler<P,T>
This is support for construct response model for entity for every request
Author:
Infosys Equinox
  • Method Details

    • toDto

      T toDto(P serviceObject)
      Convert single entity to corresponding response object
      Parameters:
      serviceObject - the entity which are going to transform
      Returns:
      transform object
    • toEntity

      P toEntity(T requestObject)
    • toDtoCollection

      default Collection<T> toDtoCollection(Collection<P> serviceObjects)
      Convert collection entity to corresponding response object
      Parameters:
      serviceObjects - the collection of entity
      Returns:
      the collection of transform object
    • toEntityCollection

      default Collection<P> toEntityCollection(Collection<T> requestObjects)