Creating the Attribute Filter

9-18 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 9–17 The Adapter Configuration Wizard: Define Selection Criteria Page The most basic expression in a WHERE clause can be one of the following three cases, depending on what the right-hand side RHS is: 1. EMP.ID = 123 In this case, the RHS is a literal value. This RHS is the Literal option shown in Figure 9–18 . 2. EMP.ADDR_ID = ADDR.ID In this case, the RHS is another database field. This RHS is the Query Key option shown in Figure 9–18 . 3. EMP.ID = ? In this case, the RHS value must be specified at run time. This is the Parameter option shown in Figure 9–18 . You can create the parameters that you need in the WHERE clause by clicking Add before you move on to build the WHERE clause. To build the WHERE clause, click Edit… to launch the Expression Builder, as shown in Figure 9–18 . Note: The WHERE clause applies to SELECT operations only that is, polling for new or changed records or performing a SELECT operation on a table. It does not apply to INSERT, UPDATE, and DELETE operations. Oracle JCA Adapter for Database 9-19 Figure 9–18 Expression Builder To model more complex WHERE clauses sub selects and functions, and to add ORDER BY clauses, you can edit the SQL procedure manually and click Next. However, this creates maintenance overhead later on, due to hard-coded SQL, and you may lose platform independence. You can change the columns listed in the FROM clause as long as the number of columns and the types of each remain unchanged. For more complex changes consider using the Execute Pure SQL option directly where you can type any SQL. Return Single Result Set You must select Use Outer Joins to return a Single Result Set for both Master and Detail Tables in the Define Selection Criteria page to use an advanced feature that influences how many total statements TopLink uses when querying against multiple related tables. The safest method is to use the default 1 per table, and this feature will attempt 1 total, by outer joining all related tables into a single result set. See Section 9.2.10, Choosing an After-Read Strategy to continue using the Adapter Configuration Wizard.

9.2.10 Choosing an After-Read Strategy

If you selected Perform an Operation on a Table, then you can skip ahead to the Section 9.2.12, Specifying Advanced Options. . When configuring an inbound operation, you have the following options about what to do after a row or rows have been read: ■ Section 9.2.10.1, Delete the Rows That Were Read ■ Section 9.2.10.2, Update a Field in the Table Logical Delete ■ Section 9.2.10.3, Update a Sequencing Table ■ Section 9.2.10.4, Update an External Sequencing Table on a Different Database ■ Section 9.2.10.5, Update a Sequencing File