Category Entity Business Object Builder

The implementation of Entity Business Object Builder for the Category entity is reasonable straightforward.

Class declaration

The class must extend from curam.ctm.bom.util.impl.AbstractEntityBOBuilder. The primary key data type and the entity's Dtls data type are Long and CategoryDtls respectively. Therefore, these types must be specified in the class declaration as follows:

class CategoryEntityBOBuilder
	extends AbstractEntityBOBuilder<Long, CategoryDtls>{
}

getName() : Returning the name of the entity

The method getName() has to be overridden to return the name of the entity that is unique across the system - i.e. in this case, the string Category can be returned.

getEntityAdapter() : Returning the Entity Adapter instance

The method getEntityAdapter() will be called by the infrastructure in order to obtain the entity's Adapter class to perform various operations on the entity. Hence this method has to be overridden to return an instance of CategoryAdapter class.