Creating the Implementation Class

There is very little that needs to be done by application developers to create a basic business entity. In addition to the setup of the CI_MD_* tables describing the entity and its constraints, only an implementation class (or Impl) needs to be added. In this case, a developer added Person_Impl. The following is a simple example of an Impl class for the Person entity.


			/**
			 * @BusinessEntity
			 *   (tableName = CI_PER,
			 *    oneToManyCollections  = { @Child( collectionName = names,
			 *                                 childTableName = CI_PER_NAME,
			 *                                 orderByColumnNames = { SEQ_NUM } )
			 *                            }
			 *   )
			 */
			public class Person_Impl
			    extends Person_Gen {
			    /**
			     * @return the UI Display "info" for this person
			     */
			    public String getInfo() {
			        return "PrimaryName: " + getPrimaryName().getInfo();
			    }
			}
		

Important parts of the implementation class are described below:


			 Person aPerson = some logic retrieving a person instance
			 String thePersonsInfo = aPerson.getInfo();