Databases Reference
In-Depth Information
You can choose base classes from Tools | Preferences | ADF Business
Components | Base Classes . The Class Naming secion will display the
naming format for the Java classes.
What just happened?
We have created three classes for EmpEO . Most of the ime, we will be working on the
EntityImpl class for doing any business operaions.
Let us see some of the useful enity methods that can be overridden from the base class to
perform various operaions on enity objects:
Operation
Explanation
setAttribute() : For example, if the
attribute is Empno , the setter will be
setEmpno() .
This method is used to set the attribute
information for an entity object.
getAttribute() : For example, if the
attribute is Empno , the setter will be
getEmpno() .
This method is used to get the attribute value
of an entity object.
create()
This is used to create a new entity object.
initDefaults()
The defaulting logic for an entity object can be
added to this method.
validateEntity()
This method is used to validate an entity.
Search WWH ::




Custom Search