Package com.skava.accounts.model.domain
Class CollectionsDO
java.lang.Object
com.skava.accounts.model.domain.CollectionsDO
- All Implemented Interfaces:
Serializable
The Class CollectionDO is used as the domain model object for collections entity.
- Author:
- Infosys Equinox
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollectionsDO
(long id, int page, int size, String filter, long bussinessId) Instantiates a new collection DO. -
Method Summary
Modifier and TypeMethodDescriptionfromEntity
(CollectionsEntity collection, CollectionAttributesRepository attributesRepository) fromEntity - Used to convert entity to domain object.fromEntity
(CollectionsEntity collection, CollectionAttributesRepository attributesRepository, String service) fromEntity - Used to convert entity to domain object.toEntity()
toEntity - Used to convert domain object to entity.
-
Field Details
-
createdTime
createdTime. -
updatedTime
updatedTime. -
createdBy
-
updatedBy
-
status
-
-
Constructor Details
-
CollectionsDO
Instantiates a new collection DO.- Parameters:
id
- the idpage
- the pagesize
- the sizefilter
- the filterbussinessId
- the bussinessId
-
-
Method Details
-
fromEntity
public CollectionsDO fromEntity(CollectionsEntity collection, CollectionAttributesRepository attributesRepository) fromEntity - Used to convert entity to domain object.- Parameters:
collection
- the collectionattributesRepository
- the attributesRepository- Returns:
- object of type
CollectionsDO
-
fromEntity
public CollectionsDO fromEntity(CollectionsEntity collection, CollectionAttributesRepository attributesRepository, String service) fromEntity - Used to convert entity to domain object.- Parameters:
collection
- It contains the attributes required for the set values.attributesRepository
- the attributes repositoryservice
- the service- Returns:
- It returns
CollectionsDO
.
-
toEntity
toEntity - Used to convert domain object to entity.- Returns:
- It returns
CollectionsEntity
.
-