Class Collection
java.lang.Object
com.skava.core.validation.InputModel
com.skava.model.datatransferobjects.Collection
- All Implemented Interfaces:
Serializable
public class Collection
extends com.skava.core.validation.InputModel
The Class Collection.
- Author:
- Infosys Equinox This Class is used as the model object for Collection Entity.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
The created by.protected Date
The created date time.protected String
The description.protected Long
The id.protected String
The name.protected CollectionStatus
The collection statusprotected Long
The updated by.protected Date
The updated date time. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromDomainObject
(CollectionDomain collection) This function is used to convert the object of typeCollectionDomain
toCollection
.toDomainObject - Used to convertCollection
object toCollectionDomain
object.
-
Field Details
-
id
The id. -
description
The description. -
name
The name. -
status
The collection status -
createdBy
The created by. -
updatedBy
The updated by. -
updatedOn
The updated date time. -
createdOn
The created date time.
-
-
Constructor Details
-
Collection
public Collection()The default class constructor.
-
-
Method Details
-
toDomainObject
toDomainObject - Used to convertCollection
object toCollectionDomain
object.- Returns:
- the converted
CollectionDomain
object.
-
fromDomainObject
This function is used to convert the object of typeCollectionDomain
toCollection
.- Parameters:
collection
- the collection domain object which is to be converted.- Returns:
- the converted
Collection
object
-