First page Back Continue Last page Graphics

Creating and Using a Domain


Notes:

Creating and Using a Domain

The slide shows the steps to create and use a domain.

1. You create the domain by right-clicking in the Application Navigator and selecting New Domain, or by invoking the New Gallery (Business Tier > ADF Business Components > Domain.)

2. When you create a new domain object, JDeveloper generates code in the domain’s constructor to call the validate() method, as shown in the next slide. Therefore, if you add your validation code to the validate() method, it is automatically executed when the domain object is instantiated.

3. In the final step, you change the type of an entity’s attribute to the domain, such as URLDomain, as shown in the example in the slide. This causes the validation code to be called when the entity object is instantiated.