# About the EntityImpl Class

A class directly or indirectly extending from oracle.jbo.server.EntityImpl. When it is instantiated, it becomes one row. You can use the Business Components Project Wizard, Package Wizard or Editor, or Entity Object Wizard or Editor to generate this Java class for an entity object if you want to customize methods, such as add custom validation logic code to the validateEntity method or attribute setter methods, or calculate attribute values in the getter methods. You can specify that this class extend from a custom class (which must directly or indirectly extend the EntityImpl class and be in the project classpath); for example, you might do this if you want to reuse code that's already been written or if your organization decides to customize the business components framework to meet specific needs. In the wizard, you can optionally generate

- accessor methods (for example, getJob and setJob), which provide type-safe access to the corresponding attribute fields and a place to add your own custom code for validation.

- data manipulation methods, including lock, which you can modify to customize the entity object's locking behavior, and doDML, which you can modify to customize its update, insert, and delete logic. The lock method is called by the framework whenever an entity's row in the database is locked for modifications. The doDML method is called by the framework with appropriate DML command, to insert, update or delete the row corresponding to the entity instance during the Transaction-Commit cycle. This method can be overridden to modify the update behavior. For example, instead of directly updating through a SQL statement as the framework does, update through a procedure call to the database.

- create method, which you can modify to customize or add additional initialization features to the entity object's create logic, for example, setting default values for attributes

- remove method, which you can modify to customize or add clean-up code to the entity object's remove logic, for example, you might need to delete child objects in a composition