Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:16:01 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

February 2005
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28          
Jan   Mar

Get Firefox!

Thursday, February 10, 2005

Mahesh writes in to ask:

Most of the Oracle tools that provide mechanism to specify query criteria has the options to put IN ( set of values ) as criteria condition, which then gets materialized in the appropriate query clause.  Where can one find the documentation for ADF Business Components on how the query criterion is specified and default behaviours?

ADF Business Components provides the View Criteria collection which is a set of zero or more "query by example" rows. If you click the Specify View Criteria button in the Business Components Tester, you can experiment with the View Criteria collection without having to write code. Typing something like IN (10,20) into a view criteria field for Deptno would find just departments 10 and 20, for example.

Here is the online doc topic about it.

There are three, related ways to override the default way that view criteria collections are materialized into a SQL WHERE clause predicate. All three are related to the oracle.jbo.ViewCriteriaAdapter interface.

  1. In your View Object's VOImpl class, override the getViewCriteriaClause() method

    alternatively...

  2. Create an object that implements the oracle.jbo.ViewCriteriaAdapter interface, and then set your view object to use an instance of your custom ViewCriteriaAdapter implementation by calling its setViewCriteriaAdapter() method, passing in said instance.

    or finally...

  3. Globally set the default ViewCriteriaAdapter implementation class that you'd like ADF BC runtime to use by setting the configuration property named jbo.ViewCriteriaAdapter to the fully-qualified class name of your ViewCriteriaAdapter implementation.

Use #1 if you'll just be doing a one-off change to a single view object.

Use #2 if you'll be using a custom view criteria adapter in two or more view objects

Use #3 to globally change the view criteria adapter default to use yours instead.

Here is a sample article that explains how to implement one:

Implementing a View Criteria Adapter to Customize Query By Example Functionality


12:32:10 PM    



I know from working through the OTN forum and email and with Worldwide Support that there are a lot of customers out there using our ADF framework. Hundreds. However, in response to my request to have users mail me to give me permission to include their company's name and homepage URL in my informal list of Some Companies Using ADF, only a small fraction of the customers using the product actually replied.

I realize that some companies require internal approval before saying "ok" to such a thing, and I totally respect that. Some have mailed me to specifically say they couldn't be listed for whatever reason. That's ok, too. The info about how they were using ADF (which I of course treat as confidential) was useful to learn about just the same. However, for all the rest of you out there that don't mind having your company's home page listed on my blog as being an ADF user, I've got a Google Gmail invite waiting to share with one developer from each of the next 30 companies that mail me to tell me I can add them to my list.

In the interest of fairness, if more than one developer from the same new company emails me, I'll give the invite to the first one that arrived in my inbox.

P.S. If you're company is already on my list, I've got an invite for the first developer from your company that mails me to ask for an invite as well.


2:23:54 AM    


A big customer wrote in with an interesting question today asking for clarification on how the application module pool works in ADF JClient applications. It was of broad enough interest I thought that I wrote up this little explanation on the topic:

AM Pooling Considerations for ADF JClient


2:00:19 AM    


© Copyright 2008 Steve Muench.