User Entity Business Object Builder

Details of the implementation of Entity Business Object Builder for the User entity are provided below:

Class declaration

The class must extend from AbstractEntityBOBuilder. The primary key data type and the entity's Dtls data type are Long and UserDtls respectively. Hence these types must be specified in the class declaration as follows,

class UserEntityBOBuilder extends
	AbstractEntityBOBuilder<Long, UserDtls>{
}

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 User can be returned.

getEntityAdapter() : Returning the Entity Adapter instance

The method getEntityAdapter() has to be overridden to return an instance of the adapter class, i.e. UserAdapter.