Class CollectionDTO

java.lang.Object
com.skava.oms.model.dto.collection.CollectionDTO
All Implemented Interfaces:
Serializable

public class CollectionDTO extends Object implements Serializable
The class contains the dto model for collection
Since:
01-Aug-2018
Author:
Infosys Equinox
See Also:
  • Constructor Details

    • CollectionDTO

      public CollectionDTO(Collection collection)
    • CollectionDTO

      public CollectionDTO(Collection collection, boolean fetchLazy)
      This method is used to set collcetion's DTO from collection entity. and also fetch properties from collection entity is fetchLazy is true
      Parameters:
      collection - It contains the attributes required for the set values.
      fetchLazy - It defines whether include properties or not.
  • Method Details

    • getAsEntity

      public Collection getAsEntity()
      This method is used to set collcetion's Id to entity.
      Returns:
      It returns Collection.
    • setCollectionEntityProperties

      public void setCollectionEntityProperties(Collection collection)
      This method is used to set CollectionProperties from CollectionPropertiesDTO
      Parameters:
      collection - - collection for which the properties
    • getCollectionEntityProperty

      public String getCollectionEntityProperty(String key)
      This method is used to get CollectionProperty from CollectionPropertiesDTO
      Parameters:
      key - - collection property name
      Returns:
      value for the collection property if the name exists in collection property otherwise returns null