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" for short) 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();