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
This class defines the model Collection (Data transfer Object) holds collection details.
Collection belongs to a business and has its own properties dervied from the common collection attributes.
- Author:
- Infosys Equinox
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
The created by.protected Date
The Created On.protected String
The description of the collection.protected Long
The id.protected String
The collection name.protected CollectionStatus
Status of the collection which indicates collection's activeness.protected Long
The updated by.protected Date
The Updated On. -
Constructor Summary
ConstructorsConstructorDescriptionThe default class constructor.Collection
(CollectionEntity collection, boolean isLoadProperties) Instantiates a newCollection
object fromCollectionEntity
object. -
Method Summary
Modifier and TypeMethodDescriptiontoEntity()
This method is used to set collcetion's Id to entity.
-
Field Details
-
id
The id. -
description
The description of the collection. -
name
The collection name. -
status
Status of the collection which indicates collection's activeness. -
createdBy
The created by. -
updatedBy
The updated by. -
updatedOn
The Updated On. -
createdOn
The Created On.
-
-
Constructor Details
-
Collection
public Collection()The default class constructor. -
Collection
Instantiates a newCollection
object fromCollectionEntity
object.- Parameters:
collection
- HoldsCollectionEntity
object for creating collection object.isLoadProperties
- Boolean value which is used to decide the nessary of collection properties
-
-
Method Details
-
toEntity
This method is used to set collcetion's Id to entity.- Returns:
- The
CollectionEntity
object.
-