Class CollectionFactoryImpl
java.lang.Object
com.skava.address.collection.factoryimpl.CollectionFactoryImpl
- All Implemented Interfaces:
CollectionFactory
Provide implements of the interface methods for conversion of collection and collection attribute
model across from entity model to data transfer objects.
This class implements the interface CollectionFactory
- Since:
- 2018-10-11
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Collection factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCollectionAttribute
(CollectionAttributeDomain collectionAttributeDomain) This method creates the collection attributes response object from the collection property attribute domaincreateCollectionAttributeDomain
(CollectionPropertyAttribute collectionAttribute) This method creates the collection attributes domain object from the collection property attributecreateCollectionDomain
(CollectionDataRequest collectionDataRequest) The createCollectionDomain Method.createCollectionDomain
(CollectionEntity collectionEntity) This method creates the collection domain object from the collection entity objectcreateCollectionDTO
(CollectionDomain collectionDomain) This method creates the collection data transfer response object from the collection domain objectcreateCollectionEntity
(CollectionDomain collectionDomain) This method creates the collection domain object from the collection entity objectupdateCollectionEntity
(CollectionEntity collectionEntity, CollectionDomain collectionDomain) This method updates the new data from Collection Domain to existing Collection Entity for update
-
Field Details
-
collectionPropertyFactory
The Collection factory.
-
-
Constructor Details
-
CollectionFactoryImpl
public CollectionFactoryImpl()
-
-
Method Details
-
createCollectionDomain
The createCollectionDomain Method.
This method creates the collection domain object from the collection data transfer object
- Specified by:
createCollectionDomain
in interfaceCollectionFactory
- Parameters:
collectionDataRequest
- The collection data transfer request object(CollectionDataRequest
).- Returns:
- The collection domain object to return(
CollectionDomain
)
-
createCollectionDomain
This method creates the collection domain object from the collection entity object- Specified by:
createCollectionDomain
in interfaceCollectionFactory
- Parameters:
collectionEntity
- The collection entity object(CollectionEntity
.- Returns:
- The collection domain object to return(
CollectionDomain
)
-
createCollectionDTO
This method creates the collection data transfer response object from the collection domain object- Specified by:
createCollectionDTO
in interfaceCollectionFactory
- Parameters:
collectionDomain
- The collection domain object(CollectionDomain
) .- Returns:
- The collection data transfer response object(
CollectionResponse
)
-
createCollectionEntity
This method creates the collection domain object from the collection entity object- Specified by:
createCollectionEntity
in interfaceCollectionFactory
- Parameters:
collectionDomain
- The collection domain object(CollectionDomain
).- Returns:
- The entity object (
CollectionEntity
)
-
createCollectionAttributeDomain
public CollectionAttributeDomain createCollectionAttributeDomain(CollectionPropertyAttribute collectionAttribute) This method creates the collection attributes domain object from the collection property attribute- Specified by:
createCollectionAttributeDomain
in interfaceCollectionFactory
- Parameters:
collectionAttribute
- The collection property attributes(CollectionPropertyAttribute
)- Returns:
- The collection attribute domain object(
CollectionAttributeDomain
)
-
updateCollectionEntity
public CollectionEntity updateCollectionEntity(CollectionEntity collectionEntity, CollectionDomain collectionDomain) This method updates the new data from Collection Domain to existing Collection Entity for update- Specified by:
updateCollectionEntity
in interfaceCollectionFactory
- Parameters:
collectionEntity
- The existing collection Entity(CollectionEntity
).collectionDomain
- The new collection domain(CollectionDomain
).- Returns:
- The updated collection entity (
CollectionEntity
).
-
createCollectionAttribute
public CollectionAttribute createCollectionAttribute(CollectionAttributeDomain collectionAttributeDomain) This method creates the collection attributes response object from the collection property attribute domain- Specified by:
createCollectionAttribute
in interfaceCollectionFactory
- Parameters:
collectionAttributeDomain
- The collection attribute domain(CollectionAttributeDomain
)- Returns:
- The collection attribute object(
CollectionAttribute
)
-