Class CollectionDTO
java.lang.Object
com.skava.oms.model.dto.collection.CollectionDTO
- All Implemented Interfaces:
Serializable
The class contains the dto model for collection
- Since:
- 01-Aug-2018
- Author:
- Infosys Equinox
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionDTO
(Collection collection) CollectionDTO
(Collection collection, boolean fetchLazy) This method is used to set collcetion's DTO from collection entity. -
Method Summary
Modifier and TypeMethodDescriptionThis method is used to set collcetion's Id to entity.This method is used to get CollectionProperty from CollectionPropertiesDTOvoid
setCollectionEntityProperties
(Collection collection) This method is used to set CollectionProperties from CollectionPropertiesDTO
-
Constructor Details
-
CollectionDTO
-
CollectionDTO
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
This method is used to set collcetion's Id to entity.- Returns:
- It returns
Collection
.
-
setCollectionEntityProperties
This method is used to set CollectionProperties from CollectionPropertiesDTO- Parameters:
collection
- - collection for which the properties
-
getCollectionEntityProperty
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
-