Mapping Boolean operators: BooleanOpMapper element
The BooleanOpMapper element is used for customizing the mappings of the Boolean operators AND, OR, and NOT. Table 10‑3 shows the default templates for mapping Boolean operators.
Table 10‑3 Default templates for mapping Boolean operators 
Boolean operator
Operand data types
Default template
AND
<BOOLEAN>, <BOOLEAN>
$P0 AND $P1
OR
<BOOLEAN>, <BOOLEAN>
$P0 OR $P1
NOT
<BOOLEAN>
NOT $P0
Example: Mapping the NOT operator
You determine that the database sometimes returns errors when the argument of the NOT operator is not enclosed in parentheses. To resolve this problem, you use the following mapping:
<BooleanOpMapper>
<FunctionMappings>
<FunctionMapping FunctionName="NOT">
NOT ($P0)
</FunctionMapping>
</FunctionMappings>
</BooleanOpMapper>