First page Back Continue Last page Graphics
Using Declarative Validation: Built-in Rules
- Built-in rules greatly reduce the need for coding.
- Include the following types of rules:
- Defined only at entity level:
- Collection validator
- Unique key validator
- Can be defined at entity or attribute level, but pertain to an EO attribute:
- Compare validator
- Key exists validator
- Length validator
- List validator
- Range validator
- Regular expression validator
- Can be defined at entity or attribute level to validate the EO or the attribute:
- Method validator
- Script Expression validator
Using Prebuilt Declarative Validation Rules
The easiest way to create and manage validation rules is through the declarative validation framework. Oracle ADF is shipped with a number of built-in declarative validation rules that will satisfy many of your business needs. You implement these rules through the entity object editor and they are stored in the entity object’s XML file.
You can implement these rules either on the entity object itself, or on its attributes. The next few slides show how to use the built-in declarative validation rules.