Databases Reference
In-Depth Information
Programmaic query : The view object can be created programmaically using
Java code. In some special cases, we can create a view object customized for
our business needs. The opions available in a normal view object will be created
programmaically using the API provided for the creaion of a view object.
Staic list : Someimes, we would like to have a list of values displayed in the user
interface for the purpose of selecing a value. The staic list can be provided by
the user during the design phase and the list will be displayed in the same order
it was entered as a list at runime to the user. A staic list will not contain any SQL
query, it will contain only the atributes that have to be listed in the UI.
Time for action - creating an entity-based view object
We have the enity object for DEPT table created as DeptEO . Now it's ime for us to create
a view object based on this enity object. The view object can be created at the ime of
creaing the enity object, by checking the opion to create the view object in the create
enity wizard. We had skipped that step so that we can create the view object now, using
the following steps:
1. Right-click on the com.empdirectory.model.view package and select the New
View Object… opion. The creaion of the view object can also be done from File |
New and selecing View Object under the ADF Business Components secion.
2. Enter the object's name as DeptVO in the Name box and select an enity object
as the data source in the next screen.
 
Search WWH ::




Custom Search