Mandy's Podcast

PODCAST

Mandy's Podcast

An introduction for class

  1. 11

    Summarize the XML Development

     Visual XML Schema Editor Xml schema visual editor 101. after opening a document, notice that the schema is immediately opened in jdeveloper using the xml schema visual editor. It’s code can of course be displayed, by flipping to the source tab at the bottom of the editor pane. When using the xml schema visual editor, several panels of jdeveloper are synchronized. The visual editor, and the code editor panel. The artifact represents a complextype. Selecting it will possibly display the annotation associated with it, if any. Notice that selecting it also updates the structure pane, as well as the property inspector. The artifact is represnting an element, as you can tell by looking at the structure pane again. All sub-components can be expanded or collapsed by clicking the plus or minus sign next to the object. This artifact represents a simple type. Notice in this case the restriction applied to it, which obviously is an enumeration. Attributes are also represented in the editor. This one for example is a mandatory attribute as reflected by the red start in front of it’s name. Controlling the visual editor. The grab scroll is available in the xml schema visual editor. To activate it, press the space bar and keep it down. With the space bar still pressed, click the mouse – and keep it clicked. The pointer turns into a closed hand. Then you can move the mouse, the diagram will follow. XML Schema Registration and the XML Editor Schemas registration. Now we’ve defined the schemas we need, we are going to use them to build instance documents. We will build those instance documents in a new project we are going to create. To be able to use – and help you with-a new schema, jdeveloper requires this schema to be registered. This registration process is doen from the preferences panel. Now we’re ready to being. We want to create an xml document matching the definition of the schema we’ve just created. Now is the tricky part. We will work with several namespaces, on of them will be called lib. The thing is that we need to create a root before being able to mention any namespace. As a result, the element (libelement in this case) reference can be wrong at that point. But we will see that we have all the tools we need to fix that situation. You can also use the palette to build valid xml documents.

  2. 10

    Summarize the J2EE Development - MVC using Oracle Application Development Framework (ADF)

     Oracle ADF Overview – Same demo as Oracle ADF Quick Tour Model: Web Services Using Web Services as ADF Data Controls. This demo shows how easy it is to create a Data Control from a web service and use it in a Struts controlled JSP application. Here is a live connection to a UDDI registry of a partner company. It contains a number of web services. You can view the WSDL file of a service. Looking at the WSDL you can see that is has one operation – sayHello. That takes a string parameter. You can create a Data Control for this web service using it’s context menu. The required files are generated into a selected project. And the data control is displayed in the palette. Now you can use this data control in a struts page flow. Use the struts page flow component palette to build up your application page flow. The first page in this page flow is a JSP to capture some data in a form. Double click the page to create the underlying JSP page. Insert another page – this time a data page that is bound to a struts action. Go to the setup.jsp tab. Now you can edit the JSP page. Add a Struts HTML from that is aware of the struts actions. This list displays any struts actions that have been defined in the page flow. In this case only greeting.do has been defined. Now you‘ve defined a link from this form to the greeting.do action. Add a text field to the new form and use the property inspector to add properties to it. Give it a name to pass a parameter from the page to the struts action. Having defined a link from the jsp to the greeting action, the diagram can be refreshed to display it. You need to add the sayHEllo operation to the /greeting action. Drop it as a method onto the action. Use the structure pane and the property inspector to see how the /greeting action mapping has handled the sayHello data control. The Action Mapping for /greeting shows that 1 parameter is expected. Write Expression Language to use the parameter created earlier. Now you can define the JSP page that the /greeting action is bound to. Display the result returned by the web service on this page. Dragging the return on to the diagram generates Expression Language to do this. Use the features of the Editor to add content and style to your page. Use the embedded OC4J to test your page flow. The web service returns the expected greeting. In this demo you have seen how easy it is to use a web service as a data control in an ADF application. Model: Enterprise JavaBeans Development Developing Business Services with EJBs using Oracle. Oracle JDeveloper 10f is a J2EE development environment with end-to-end support for developing, debugging, and deploying J2EE applications and Web services. This online demo will walk you through building business services with EJBs using Oracle JDeveloper 10g. We will create a new application workspace, which will use JSP struts, EJB application template. The JSP, struts, ejb application template created and application with two projects. Model & ViewController. In the next few steps we will create business services using EJBs. Create a new EJB Diagram. EJB Modeler enables modeling session, entity, and message driven beans. Users can model session beans, add properties and business methods which are synchronized with the source files. Users can model entity beans and forward engineer them as database tables or reverse engineer database tables as Container Managed Persistence (CMP) entity beans with a simple drag-and-drop action. Foreign key relationships in the database are also reverse engineered as Container Managed Relationships (CMR). Reverse engineer Departments and employees tables as CMP entity beans. Departments and employees entity beans in applications navigator. Create a session bean which will act as a façade for departments and employees entity beans. Using the EJB Modeler, users can model the relationships between entity beans or references between EJBs. Adding a reference between EJBs automatically synchronizes the deployment descriptor by generating the appropriate or tags along with the lookup code in the bean class. JDeveloper provides an easy mechanism to generate Data Transfer object design pattern for CMP entity beans. Select entity bean in EJB Diagram and choose generate|Data transfer object. The EJB Module Editor provides a common user interface for editing all the EJBs in the ejb-jar.xml deployment descriptor. The relationships panel in the editor lets developers add, edit, and delete the CMR relationships between entity beans intuitively. The methods panel lets developers add, edit, and delete different types of EJB interface methods. The EJB Module Editor lets developers easily make changes to different types of bean properties such as security roles, methods permissions, and container transactions in the deployment descriptor. All modifications made in the EJB Module Editor are synchronized with model, source, and deployment descriptor. Double clicking on EJB would bring up the EJB module editor. Add showDepartments attributes which would return a collection of Department Data Transfer objects. The EJB Verifier provides an easy way to detect deploy-time errors. The EJB Verifier validates ejb-jar.xml against the Document Type Definition or DTD and verifies the EJB classes for inconsistencies. For more information, visit the oracle technology network at otn.oracle.com. There you’ll find additional online demos, technical whitepapers, code samples, product downloads and much more. Model: TopLink TopLink Mapping Editor in Oracle JDeveloper 10g. In this demo, we will introduce the TopLink Mapping editor. First we will create a new Java Class diagram for our sample HR application. Select General then diagrams. Select Java Class Diagram and click OK. We will rename the diagram for the project. JDeveloper creates the new diagram and adds the diagram to the application model. Now we will add the database tables to the diagram. For this application, we will use the Departments and Employees tables. In this demo, JDeveloper will automatically reverse engineer the TopLink mappings from a Java class diagram. However, the TopLink mapping editor also supports forward engineering and meet in the middle use cases. Simply drag the database tables onto the diagram. JDeveloper allows you to create different elements from the tables. In this demo, we will create java classes. JDeveloper created the .java class files for both tables and added them to the application model. Now we will open the TopLink mappings editor and review the TopLink mappings created by JDeveloper. Expand the TopLink Mappings elements in the Structure window. JDeveloper creates TopLink descriptors for each Java class and maps each attribute. The TopLink Mapping editor also allows you to configure your deployment information and sequencing information to configure TopLinks’ other runtime defaults. When you select a TopLink descriptor the mapping editor displays the descriptor’s information. You can also define custom queries and query keys for each descriptor. In addition, all of TopLink’s advanced properties are available. For this direct to field mapping, the TopLink Mapping editor provides several options. For relationships, such as this one to many mapping, the TopLink Mapping editor provides collection options and reference information. The mapping editor also provides a mapping report that will identify any problems in your model. This project contains no errors! Now we will generate a deployment descriptor. JDeveloper compiles the source, verifies the mappings, and generates the deployment descriptor. Model: ADF Business Components Developing Business Services with Oracle ADF Business Components. The steps are: modeling business components, adding validation rules, adding formatting rules, and testing with a swing based tester. Create a connection to a database. Then we’ll use the UML modeler to define the business service layer. Next Create Business Components based on existing tables in the database. We can choose our implementation of database access from Java. Here we are editing entity object attributes. Now were adding a validation rule for an attribute declaratively. Next we’re generating a data control for the model layer. Then we’ll add formatting and heading for attributes. Then test our business components using a simple swing based tester. The heading and formats are shown in the UI. We can see that the validation rule is working. Controller: Struts JDeveloper 10g editing apache struts page flow. This demonstration provides an overview of the apache struts page flow editor in oracle jdeveloper 10g. The struts page flow can be opened by editing the struts-config.xml file directly, or by using the open struts page flow context menu option on any project with the struts technology scope enabled. The page flow diagram provides a visual way of editing and documenting your page flow. Actions, page forward actions and data-bound pages are all represented as shapes on the diagram. Action forwards, defined in the struts sml, are shows as solid lines linking the action shapes. They are labeled with the name of the forward. Explicit links between pages or between pages and actions, such as those defined in html:form, html:lilnk or a href tags, are shown as dashed lines. Form bean usage is indicated by an overlay icon. Form bean usage is indicated by an overlay icon. The diagram provides several aids for visualizing and navigating around large page flows. The diagram also provides various tools to help with the layout of the flow, such as snap to grid and alignment modes. Additionally, the developer can customize the colors and fonts used and add annotations to the diagram. Source view gives you access to the underlying struts xml configuration file. The xml view is fully validated and synchronized with the diagram view. You are able to edit the struts definition in either mode. The xml view provides code insight and syntax highlighting to reduce the chances of manual coding errors. Changes will also be validated against the struts dtd. As well as the diagram and xml views, the JDeveloper property inspector can be sued to edit the struts metadata. Values can be directly edited in the property inspector, which is synchronized with the underlying xml. List of values are shown for properties such as the form-bean name or page names. You can also categorize the property list to make it simpler to locate the attributes you need to change. Finally, the structure pane provides an alternative view on the configurations structure and provides a useful way of navigating to some of the non-visual elements. Visual elements such as actions can be created directly in the diagram using the component palette. Incomplete actions are marked with a warning, indicating that there is no code or page associated with this action. In summary, the page flow editing in jdeveloper 10g provides the struts developer with a highly intuitive visual authoring environment combined with the flexibitlity to edit the struts xml directly if required. View: JSP Web services application development with oracle adf. The steps are creating a business service from a web service, creating a struts page flow, visually editing the jsp pages, using struts and html jsp tag library, binding web services to the jsp user interface. We create a business service data model from existing web serves in a public uddi. All we need is a pointer to the wsdl. Then we create a struts page flow diagram for our application. We have a welcome page to get the parameter, an action to invoke the web service and another jsp page to show the results. Next we’ll edit the jsp page to get the stock symbol. Now we’ll add a struts form tag that will invoke the action. There are several ways to edit your code, the property inspector, OR the code can be changed directly and the visual editor is kept in synch. Getting the results of a web service into a jsp page is a simple drag and drop operation. Then we can run the completed application on the embedded j2ee container. View: Swing - ADF JClient Building ADF JClient applications using business components. ADF JClient in Oracle JDeveloper 10g supports declarative development of rich client applications using Java Swing. This demo is an example of how to develop a master/detail JClient application in oracle JDeveloper 10g using ADF business components. The same development steps are used when building jclient applications for other datasources like TopLink or enterprise java beans. An empty jclient form is a subclass of the java swing jframe class that implements the jclient interface. Swing components in adf client are bound to business services like adf business components by using the data control palette. View: ADF UIX ADF UIX Complete application sample. This demo illustrates how easy it is to build an application using oracle jdeveloper 10g production. The necessary business services have already been created as well as a simple struts page flow diagram. The demo will focus on building the view based on adf uix technology. By double clicking on the data page node /main in the struts page flow diagram, we can wire our data page to a specific page. By default the name of the page will be the same as the data page action node, and depending on the technologies selected for the project, there will be a list of available file types. Alternative you can use the browse button to wire an already existing page to the action. Now let’s create a master detail page with a department form with navigation and an employee table using the new data control palette. By specifiying an event we can send an event result to the struts controller that can interpret as an edge out from the data page action wired to this page. In this case, we have a forward called success pointing to the employee form page. Adf uix contains a set of components that helps you with the layout of your page. In the adf uix technology there is a term called named children. You can look at named children as slots where you can add components. One of the cool features you get for free building applications with oracle jdeveloper 10g and adf uix is partial page rendering PPR. In our example when selecting a department it is only the department form and employees table that is refreshed and not the entire page.

  3. 9

    Summarize the UML Modeling and Generation

     UML Class Modeler Uml class modeling. This demo goes over creating a uml class model, transformation and linking, and documentation generation. Uml class modeling enables the capture of requirements in a technology neutral visual model to validate user requirements, and document complex application. This demonstration models the components of a simple order entry application in an abstract uml class diagram, and then generates a java class diagram and implementation files. We create a basic class diagram with some classes and associations between them. Then we add some attributes and methods to the order class. Attributes and operations can also be added using the class dialog. JDeveloper 10g supports model driven architecture style transformation between a uml analysis model and a java or adf business components design model. Now we transform the uml analysis model into a visual java design model and implementation files. The generated java design model and implementation files reflect the properties of the uml analysis model, with associations implemented as java references. The developer can navigate directly to the code to add method bodies and further implementation functionality at this level. Apart from the mda style transformations, jdeveloper 10g also supports linking of diagrams for rapid traversal of models. In order to publish visual models for review or reference, uml models can be published as graphics files or inserted in a javadoc html document. UML Use Case Modeler Uml use case modeling. We’ll create a visual diagram, add requirements details in html, and publish the specification in javadoc. Modeling use cases allows you to capture the requirements of your system in terms of the functionality it offers to external actors. Where a use case requires a great deal of detail, make use of the fully dressed option. The underlying document created use a more detailed template. Various functions are available for tidying up the diagram: autolayout, alighn and distribute. For further documentation, notes can be added to diagrams, as can be url links to external documents. The requirements captured can be easily published in javadoc html form and placed on a server for reference and validation. UML Activity Modeler Oracle Developer 10g supports uml activity modeling. Her is an order management business process modeled in a uml activity model. Let’s create a swimlane to support the customer system. Now the activity or process Get Customer. The activity results in a new object flow state:customer. Now we create the transistions that connect the activity and state with the rest of the model. Double clicking component makes it ‘sticky’, you can create multiple instances one after the other. Flow states form a structure within an object. Java Class Modeling Java Class Modeling. We’ll go over creating diagrams, a package and a java class, use autolayout, diagram and code synchronization, refractor from the diagram, create a package dependency, and generate and navigate javadoc. This java class modeler demonstration uses java files generated by jdeveloper 10g to create a java client for a google search web service based on a google api wsdl. First create a diagram of the search.google package, then drill down to visualize the java classes. JDEveloper 10 g supports a number of styles of diagram autolayout. The java class modeler automatically synchronizes the diagram and the code, irrespective of where you make the changes. Let’s change the name of the directorycategory class. There are a number of attributes and methods in the project that reference this class. The refactoring process identifies the dependcies, implements the changes and recompiles the project. All this can be driven directly from the diagram. More than one package can be displayed on a diagram, and dependencies can be drawn between them. Database Schema Modeler This demo is designed to illustrate the latest database modeling features in jdeveloper. Select the tables you want to appear in the diagram. Generate the ddl script. Use the context menu to execute the sql against the required schema. Return to the database connection to review the updates.

  4. 8

    Summarize the Complete J2EE Applications

     A Struts/JSP Application Creating Simple Login Procedure for web application using struts. The steps are to create a struts page flow, edit the jsp pages, run with the embedded j2ee container. Create a new application. Create a struts based page flow for the application. This application starts with a login page that activates a validation routine that can route to the applications menu or to a failure notice. Create struts form bean to pass parameter to the struts action. Then connect the struts action to the struts form bean. Next write code to implement the struts action. Run the application on the embedded j2ee container. That’s it. The only place where coding was needed was implementing the business logic that handles the actual user validation rule. Oracle ADF Business Components Based Application - Business Services Layer Developing business services with oracle adf business components. The steps are to model business components, add validation rules, add formatting rules, and test with a swing based tester. Use uml modeler to define the business service layer. Create business components based on existing tables in the database. Edit entity object attributes. Add a validation rule for an attribute declaratively. Generate a data control for the model layer. Test the business components using a simple swing based tester. Oracle ADF Business Components Based Application - View/Controller Layer (Struts-JSP) Developing jsp interface for oracle adf business components. The steps are to model struts page flow, edit jsp pages, drag and drop data binding, use built-in data manipulation methods, implement transaction management. Oracle ADF Business Components Based Application - View Layer (UIX) Developing uix interfaces with oracle adf. The steps are to do drag and drop data binding, uix – rich html components, partial page rendering, built in range paging, built in record ordering, and the plug and play look and feel. EJB Based Application (EJB-Struts-JSP) Ejb based application development with oracle adf. The steps are modeling entity ejb, creating session façade, generating dto, bulding jsp application accessing the ejb through the session façade and the dto. Web Services Based Application (Web Services-Struts-JSP) Web services application development with oracle adf. Steps: create a business service from a web service, create a struts page flow, visually edit the jsp pages, use struts and html jsp tag library, and bind web services to the jsp user interface.

  5. 7

    Summarize the Generating Oracle ADF Business Components from Oracle Designer

     Reviews a basic Designer module Generating adf business components from oracle designer. In this demonstration you use the adf business component generator in jdeveloper to generate business components based on a module defned in oracle designer. In part 2 and 3 you see that any modifications mad to the module in designer are captures in the business components in jdeveloper during regeneration. There are a few initial tasks you need to do before you can start the generation. You need to create 1 an application workspace and project if you don’t already have these. 2. a connection to the designer repository. 3. a database connection for the completed application to connect to . Reviews the generated output Generating adf business components from oracle designer part 2, reviewing the generated results. The entity object attributes are generated from designer table definitions. The attributes are displayed in the structure pane. The validation is generated from the domains associated with columns in designer. Use the jdeveloper tester to preview the generated results. Making changes in Designer and regenerating Generating adf business components from oracle designer part 3, making changes in designer and regenerating the module. This demonstration returns to the designer design editor to update the module definition before regenerating the business components. Reviews the generated output after the changes Generating adf business components from oracle designer part 4, reviewing the generated output as a model. This final demonstration shows the structure of the generated business components in a model.

  6. 6

    Oracle JDeveloper Introduction - Getting to Know the IDE

     A guided tour of the IDE. This demo introduces you to JDeveloper’s IDE (Integrated Development Environment). This is the screen that displays when you open JDEveloper for the first time. Note that there are 3 windows. The large window, currently displaying the JDEveloper welcome information, is referred to as the Visual Editor, or Code Editor. This window is the Applications Navigator. And this is the structure window. You get started with JDeveloper by first creating a workspace in which to store your work. To create a workspace, select ‘Applications’ in the Application Navigator, and choose File|New. We’ll select the Workspace Item and click OK. Ensure that the Add a New Empty Project box is checked, and click OK to create your workspace. You can rename your project, or accept the default name. Click OK to create your project. The workspace and project names appear in the Navigator. A project is a sub-division of a workspace, and helps you organize your work, within the workspace. As you work with JDeveloper, you build up a collection of workspaces and projects within them. The Application Navigator allows you to view your workspaces and projects, and their contents in a hierarchical fashion. Note that the names of the workspace and project are italicized. This is because they have not yet been saved. Click File|Save to save your workspace and project. Now that you have a workspace and a project, you can start to build an application. Let’s create a JSP. Select File|New. The New Gallery displays the various types of applications you can build with JDeveloper. Select the Empty Project item and click OK. Now expand the Web Tier node and select Java Server Pages (JSP). In the items pane, choose JSP Page and click OK. Change the filename to hello.jsp and click ok. The empty hello.jsp page displays in the visual editor and it appears under the MyProject node in the navigator. The structure window is synchronized with the other windows, and so it displays the structure of hello.jsp. Two new windows have opened on the right of the page. The Component Palette and the Property Inspector. A JSP is an HTML page with embedded Java code. Let’s add some simple text to the page. Type in ‘Hello world’. The toolbar allows you to format the text on your page. Change it to Heading 2. Note that the property inspector displays the properties for the currently selected item, in this case, the H2 heading. You can view and update properties through the property inspector. The component palette provides the components needed for creating the many types of applications that jdeveloper offers. Let’s add a style sheet to the page. Select CSS which is a Cascading Style Sheet. Three style sheets are available. Select JDeveloper and drag it over to the editor. The JDeveloper style is applied to the page. Note that the property inspector is updated accordingly as is the structure window. Let’s add some HTML components to the page. In the component palette, select HTML then Form. Drag Form over to the editor. In the form we added, type Login: Now select Text Field from the component palette. Drag this to the right of the word Login in the editor. Change the name of the text field to username in the property inspector. Now click Submit button in the component palette and drag it to the right of our text field. A submit button is added. This window shows you the design view of your page. You can also view the source in the Source window or you can split the window to see design and source views at the same time by selecting Window|Split Document. The windows are synchronized so that a change made in one window is immediately visible in the other. If you change login to logon, you can see the change in both windows. Let’s add some code in the source window. On the logon row, put a space after form. Note how the code insight feature of JDeveloper helps you by offering suggestions in the appropriate context. Select action and type in hello.jsp. Go to the design window and save the page. Run the page to see how it will look when run in a browser. From the context menu select Run. …. Many applications require connections to other machines and devices. You use the connections navigator to create connections to other devices. These are the types of connections available. Let’s create a database connection. In the connections navigator, right click database and select New Database connection. Click Next. Here you can see the available connection types. Click Next. Enter the username and password for the database and click next. Now we’ll enter the IP address for our host and click next. Click Test Connection to make sure our connection is set up correctly. The database connection has been successfully established. Click next then finished. The new connection appears in the navigator. Expand the node to see the database objects. Expand the Tables node and we can see all the available tables. Notice that the columns of the selected table appear in the Structure window. This has been a guided tour of JDeveloper’s IDE. You have visited the Applications and Connections Navigators, the Visual Editor and Code Editor, the Component Palette, Property Inspector and Structure window.

  7. 5

    Oracle JDeveloper Introduction - Oracle ADF Quick Tour

      This demo is about the Oracle Application Development Framework. Oracle JDeveloper 10G comes with a complete J2EE Framework which is Oracle ADF. Now we’re going to see how Oracle ADF provides Productivity with Choice when developing a J2EE application. In the applications Navigator, right click Applications and select New Application Workspace. Change the Application Name to HRApp. Next view the drop down list for the Application Template. Application templates allow us to specify the technology used in the application to simplify and personalize the environment according to your technology preferences. Make sure that Web Application [default] is selected. Next click manage templates. Under Web Application [default] select View and Controller. Now you’ll see that each template specifies the selected technologies for each project in the application to personalize the IDE accordingly and simplify the development environment. Now select Data Model on the left under Web Application [default]. In the Available Technologies, ensure that ADF JClient is selected, then click OK. Click OK again in the Create Application Workspace. Now right click on Model in the application navigator and then select New. When creating a new object, the choice is restricted to the selected technology but all other options are still accessible. If you change the Filter By option to Project Technologies, you’ll only see the technologies specified for the project. Select the Business Component category and the Business Components diagram item and click OK. Now you’ll see a dialog box to enter the name for the Business Component Diagram. Just use the default name and click OK. Open the Connections navigator. Expand the database folder and then expand the HR8 connection. Now we’ll use the ctrl button and select the Departments and Employees tables. Move the cursor to the Business components Diagram and click anywhere. A box opens which asks you what you want to create based on the selected table definitions. You can see it’s filtered by Project Technologies. If we change that to all technologies, we have more options which to filter by. Drag and drop of Database table onto a UML diagram can be used to create different types of objects with the same user experience. Make sure Business Component Entity Objects is selected and click OK. The entity objects are now being created. Once it’s finished creating the objects, you’ll see them in the Business Components Diagram. Right click on the Employees object then select Generate, then Default Data Model Components. Data model components are business components that collect data and present it to the client. When the wizard opens, just click next selecting all the defaults and then select Finish. Now in the applications navigator select the Applications tab. You’ll see the Business Components here. The Business Services Layer is “productivity with choice”. You get productivity because of uml modeling, drag and drop of tables which allows you to easily create components, and wizards that help create the Business services layer. There is a choice because it gives you a consistent user experience for developing things like javabeans, web services, and database objects. Let’s now develop a web interface for this Business Service. Under ViewController, Web Content, and WEB INE, you’ll see struts-config.xml. This is a page flow editor which allows you to visually and declaratively define the flow of the application. Right click struts-config.xml and select open. Out of the component palatte, select the data page component, the click in the editor. You’ll see the a new page is added. Drill down directly to the page from the page flow editor. Double click the page and change the name to /datapage1.uix and select OK. The View Layer in oracle JDeveloper 10g offers What you see is what you get editors to visually and declaratively design the user interfase. You can choose between the following views: HTML, jsp, adf uix, swing/adf jclient. Now in the Data Control Palette, select the Data Controls tab. Expand the AppModuleDataControl item. All business services previously created are exposed in the data control palette. They are available in a consistent way, making data binding as simple as drag and drop on the visual editor. Expand the departmentsview1 and then select the EmployeesView2. View the Drag and Drop as drop down box. Select Master Detail (one to many) option. Now drag EmployeesView2 and drop it into the editor. You’ll now see the EmployeesView fields displayed in the editor as a master detail report. Select the Master Section, then in the bottom right hand corner, you’ll see where you can change the name of this section on the page. Change the name from master to departments. Next select the detail section of the page. Change the name of that section to employees. Now go back to the struts-config.xml page flow diagram and select Data Page from the component palette. Click in the editor and another page is added. Click on the page and make sure the name is /datapage2.uix and click ok. Now change the ‘drag and drop as’ drop down to Input Form. Drag the EmployeesView2 object to the editor and drop it. You’ll see the fields added as an input form. Again go back to the struts-config.xml page flow diagram. Select page Link from the component palette. Click /datapage1 and then click /datapage2 so that the arrowhead is pointing to /datapage2. Right click /datapage1 and select Run. The embedded oracle container for J2EE allows you to run, tune, and debug the application from the IDE. The page opens. You can view the fields and click Next to scroll through the records. If you select a record and click datapage2.do, you’ll go to the input page. Now click File close. Now in the Applications Navigator select the Connections tab. Expand the Application Server under Connections. The application is now ready for deployment to the application server because we have all of our necessary files. So Oracle ADF increases productivity because it is Visual and Declarative. It uses what you see is what you get editors, a page flow editor, and uml diagrams. It is personalized for your choices. You can set the technology scope and personalize the extension manager. It also gives you a choice of technologies and platforms. That’s the end of our Oracle ADF Quick Tour. For more information, visit the oracle technology network at otn.oracle.com. There you’ll find additional online demos, technical whitepapers, code samples, product downloads and much more.

  8. 4

    Oracle JDeveloper Introduction - Oracle JDeveloper 10g Quick Tour

     JDeveloper is a complete, integrated development environment which can be used for Multiple languages. The J2EE Framework enables developers to quickly build applications and gives them many choices on how to build them. Now we’re going to demonstrate how to build the business services. Oracle ADF raises the bar for J2EE application development productivity without locking users into a particular platform. This demo begins with developing the Business Services for an application, which can be implemented as any combination of EJBs, Web Services, TopLink classes, Java classes, or Oracle ADF Business Components. You can add new business service entities from the component palette, or you can drag and drop a table from the database navigator. Business Logic, such as validation rules, is implemented in the Business Services. First we select the entity in which we want to add a validation rule by double clicking the object. Select validation on the right, then select the field we want to validate and click ‘New’. The add validation rull dialog box is displayed. In the rules drop down, select ‘Compare validator’. We want to validate that the salary is Less Than or equal to hundred ninety-nine thousand, nine hundred, ninety nine. We enter our literal value which is nine hundred ninety-nine thousand, nine hundred, ninety nine. Then enter an appropriate error message and click OK. Now we see our validation rul under the Salary object. Click Ok to return to the diagram. Next we will build the user interface. With oracle ADF and Oracle JDeveloper 10g, you can develop user interfaces for web applications, rich client applications, or wireless applications, all using the same set of business services. Jdeveloper includes a visual page flow diagrammer for visually constructing the page flow of Struts applications. Select ‘Page’ in the Component Palette, then click below createDeptAct. A new page is added. Change the name to /createEmp.jsp. Next select ‘Forward’ in the component palatte. Click on /createEmpAct then click on /createEmp.jsp. A line will be drawn with the arrow pointing to /createEmp.jsp. Double click the /createEmp.jsp file to open it. Type ‘Human Resources Application’ and hit enter. Then type ‘New Employee’. Select the ‘Paragraph’ drop down and select Heading 3. Notice the ‘New Employee’ text changes to bold. Move the cursor up to Human resources application then go to the ‘paragraph’ drop down and select ‘Heading 1’. Select the ‘components’ tab on the right side of the screen. Select the JDeveloper CSS and drag it to the editor after the title. This will add the JDeveloper Cascading Style sheet to the page and change the format of the text that was entered. Oracle provides a databinding layer to make binding web, rich client, or wireless applications to Business Services as easy as “drag and drop”. Select the Data Control palette tab on the right side of the screen. Make sure ‘Drag and Drop As’ has Input Form selected and select the EmployeesView object in the palette. Drag the object to the editor below the ‘New Employee’ text. All of the available fields are added to the screen. Next we’ll talk about profiling and testing the application. Oracle JDeveloper contains a lightweight J2EE application server (OC4J) to enable easy testing of applications. The quick startup reduces time spent on the edit, compile, test cycle. JDeveloper also provides a suite of testing and tuning tools, including a state-of-the-art debugger, profilers, audits/metrics, and CodeCoach. This demo shows testing the web application using the Event profiler. Select Run from the toolbar, then select Event profile ViewController.jpr. The page is now displayed in a browser. Click Next to move through the department records. On department 30, click edit for the employee details for employee 114. The Edit Employee page is displayed. Change the salary from eleven thousand to 1.1 million and click update. This validation error is a result of the logic added to the business service earlier in the demo. Meanwhile, we can use the Event Profiler to pause the application and retrieve the profiling statistics up to this point. Select the pause icon. Here we see the profiling statistics. This profiler provides insight into the internal events generated by the application. Used in conjunction with the other tuning tools in JDeveloper, the profiler can help ensure optimum code quality and performance. Now we’ll look at tailoring JDeveloper. The JDeveloper environment can be highly customized to fit user requirements. For example, if you know that you will not uses certain features, you can disable them. You can also develop your own extensions to supplement the JDeveloper feature set by using the JDeveloper Extention SDK. We’ll expand the System Extentions extension and then deselect the System Extention. You’ll see that all the extensions within the System Extension are all deselected. Then click OK. Right click Applications in the Applications Navigator and click the New Application workspace. When you create a new application, you can use one of the existing application templates, or you can create your own. Application templates help set reasonable defaults for the type of application you are building. Change the application name to MyHRApp then select ‘Manage Templates’. Now select ‘View’ under ‘Web Application [JSP,EJB]. One of the default settings you can control is the Technology scope. Technology Scopes assist you by prompting you with the most pertinent menu choices and other options while you are working. Select ok. Right click Model and select NEW. For example, the Technology Scope is used to filter the contents of the New Gallery, providing faster access to the items you are likely to need. Now we’ll talk about working with XML Schemas and Documents. JDeveloper includes a visual XML Schema editor. Like most JDeveloper features, you can interact with the editor using the Structure window, Component Palette and Property Inspector. Select attribute from the component palette and drag it inside the PurchaseOrderType object before the OrderDate. On the right update the name to OrderNo. Additionally, the XML code editor has many productivity features such as tag insight. Select the purchase-order.xml tab. We want to add a tag. After hit enter. Then right click to display the available tags. Select shipto. Hit the space and another option pops up for country. Hit enter to select it and type US in the double quotes. Then type in the closing tag . Now we’ll talk about working with a database. Oracle JDeveloper facilitates working with objects in any SQL92-compliant database. There are some additional features (such as PL/SQL support) that are specific to oracle. In the connections navigator, expand the OracleDB_HR connection. In the packages group and the EMP_MAIN package, select EMP_MAIN. If you double click the list_emps field, you’ll see the source in the editor. If you need to tune an SQL statement, you can copy and paste the statement into JDeveloper’s SQL worksheet. In the list_emps procedure copy the select statement. Go back to the OracleDB_HR connection by clicking the tab. Remove the existing select statement and paste the statement copied from the list_emps procedure. From the SQL Worksheet, you can execute any SQL statement, as well as get it’s explain plan. Open the SQL Worksheet. Here we’re viewing the explain plan. In the Connections Navigator, scroll down to the Tables and select the Employees table. Now we see a view of the data in the Employees table. You can even work with Database diagrams, either by reverse-engineering from existing tables, or by creating new tables. Now we’ll select the HRSchemaDiagram tab. Holding down the control key, select the Countries table, departments table, employees table, job history table, and the jobs table from the connections navigator and drag them to the diagram. Now you’ll see the selected tables in the diagram. From a database diagram, you can generate the DDL to create (or reconcile) the tables. Right click in the diagram. Click generate, then Data Definition Language for Diagram. When the dialog box opens, Create(or replace) the chosen objects should be selected. Click next and then click next again. Now we have the DDL needed to create the selected tables. That’s the end of our Oracle JDeveloper 10g Quick Tour. For more information, visit the oracle technology network at otn.oracle.com. There you’ll find additional online demos, technical whitepapers, code samples, product downloads and much more.

  9. 3
  10. 2

    About Me

     

  11. 1

Type above to search every episode's transcript for a word or phrase. Matches are scoped to this podcast.

Searching…

No matches for "" in this podcast's transcripts.

Showing of matches

No topics indexed yet for this podcast.

Loading reviews...

ABOUT THIS SHOW

An introduction for class

HOSTED BY

Mandy

URL copied to clipboard!