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; 8:11:48 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

February 2003
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 06, 2003

"How can I select results from database stored functions, or procedures with out arguments in BC4J?"

This question came in today on one of our internal email lists, so I decided to take a moment and write up a quick article illustrating some of the techniques available to accomplish the job. Here I describe how to use view objects to select stored function results, including a trick for how to wrapper stored procedures with one or more out arguments to make those easy to use, too.


12:29:43 PM    



To Java or not to Java? Depends what you need. The BC4J framework is designed to allow completely declarative components to be defined using only the component XML files if you have no need to write custom Java code for the component. By default, we generate the entity object Java class, the view object Java class, and the application module Java class. But you can explicitly turn off the Java file on a component by component basis (on the "Java" panel of the respective editors), as well as globally change the defaults for whether we generate Java files or not. You can change the defaults in the Tools | Preferences... dialog, under the Business Components / Java Generation panel. Try building yourself an Emp/Dept example with EO's, VO's, and AppModule all without Java and test it in the tester to see that it all works. For components that don't have a custom Java file, the BC4J framework baseclass is used at runtime instead.

Of course, if you don't generate the Java, then you don't get the typesafe accessors generated and need to work with the attributes of entities and view object rows using the generic getAttribute() method, but being aware of this feature you can be more conscious about when to use it and when not to.


12:56:48 AM    


It seems it's the month for questions about polymorphic view objects and how to work with them over on OTN and on some of our internal help mailing lists. One aspect of BC4J's powerful support for inheritance in your domain business object model and polymorphic result sets in its data model layer is that by using a new API in 9.0.3, you can selectively create the desired polymorphic subtype for a new row. I just posted a little article explaining how...
12:14:59 AM    


© Copyright 2008 Steve Muench.