Home arrow Graphic Design arrow Page 7 - WebLogic Workshop Application Development Basics
GRAPHIC DESIGN

WebLogic Workshop Application Development Basics


This chapter from BEA WebLogic Workshop 8.1 (Kick Start series, from Sams Publishers, by Albert J. Saganich, Jr., et al., 2004. ISBN: 0-672-32622-1) explores the WebLogic Workshop programming model and introduces enterprise application development.

Author Info:
By: Albert J. Saganich, Jr.
Rating: 4 stars4 stars4 stars4 stars4 stars / 38
June 22, 2004
TABLE OF CONTENTS:
  1. · WebLogic Workshop Application Development Basics
  2. · Page Flow Fundamentals
  3. · Portals
  4. · Creating Applications and Projects
  5. · Workshop Applications Breakdown
  6. · Accessing and Exposing Data via Controls
  7. · Creating Simple Rowset Controls

print this article
SEARCH DEVARTICLES

WebLogic Workshop Application Development Basics - Creating Simple Rowset Controls
(Page 7 of 7 )

Rowset controls are the heart of any database application. There are, in fact, two types of database access controls. Database controls, which are similar to rowset controls, require all data access to be coded by hand. Rowset controls go a step further than database controls, in that they provide a core set of access methods, based on java.sql.RowSets, for accessing data. Developers are free to add functionality, but a set of core methods are supplied.

To create a rowset control, select a folder where the control will be created and follow these steps:

  1. Select File, New, Other File Types from the Workshop menu (see Figure 3.13).

  2. (Same as step A.)

  3. Select Business Logic in the left pane.

  4. Select RowSet Control in the right pane (see Figure 13), and click Create.

saganich

Figure 13 - Creating a rowset control.

  1. Enter the control variable name.

  2. Select an appropriate datasource.

  3. Select the methods to create, either Query and Update a Database Table (for traditional tables) or Query a View or Table (no update methods generated). The remainder of the steps for adding a rowset control are shown in Figure 14.

saganich

Figure 14 - Selecting methods, columns, and a primary key source in the RowSet Control Wizard.

  1. Select the schema and table name, and click Next.

  2. Select the columns to include, and click Next.

  3. Select the primary key mechanism, and click Create.

When you're finished, a new rowset control is created in the folder you selected. The new control can be used to access the table from a Page Flow or another control.

Deploying and Configuring Applications

To this point, you've been working with applications without understanding how they can be built or deployed. Whenever you make a change to an application, WebLogic Workshop automatically synchronizes with the running instance of WebLogic Workshop.

Building Applications

Before an application can be run, it must be compiled. WebLogic Workshop can build application components automatically or on demand. In the Workshop environment, building an application is more then just compilation. Because applications contain annotations, these annotations must be reviewed, the components compiled, supporting classes created and configured, and more. WebLogic Workshop applications can be in development or production modes. In development mode, all components are compiled automatically as they change. In production mode, applications or components must be built using the command-line wlwbuild.cmd scripts or Workshop's Build, Application, Build, EAR or Build, Project, project name menus. You can change an application's or project's properties by selecting the application or project, right-clicking, and then choosing Properties. Figure 15 shows the Application Properties dialog box.

saganich

Figure 15 - The Application Properties dialog box for the chapter3 application.

Mapping Applications and Projects to Directories

WebLogic Workshop maps directly to an EAR file. Figure 3.16 shows the directory structure of the chapter3 sample Workshop Web application. Table 3.1 maps WebLogic Workshop folders to the directories on disk.

saganich

Figure 3.16 - Application directory structure.

Table 3.1 Directory to Application Mapping

Directory or File

Workshop Application Equivalent and Contents

chapter3Webapp.work

Workshop application configuration file. Do not edit or delete this file.

.workshop

Files and classes generated by Workshop. Not displayed.

APP-INF\lib

Location for all project JARs. Maps to Application\lib. Any JAR files added to this directory are added to the application's class path. Schema and other projects that produce JAR files place them here.

chapter3Web

Actual application contents. Maps to chapter3\chapter3Web\.

chapter3Web\WEB-INF

Maps to chapter3\chapter3web\WEB-INF. All tag libraries and Web application deployment descriptors are located here.

Schemas

Schema project. Maps to chapter3\Schemas.

META-INF

Maps to chapter3\modules. Contains all application-level deployment descriptors managed by WebLogic Workshop.


In Brief

In this chapter, you learned that

  • Workshop supports the creation of several application types, including Web applications, Schema, portals, and business processes.

  • The WebLogic Workshop programming model is the underlying basis for all Workshop applications. Its constituent parts (Page Flow, controls, and so on) are based on Struts and the MVC pattern and are used to model application functionality.

  • Applications and projects are the heart of WebLogic Workshop development. Projects are used to contain Page Flows, controls, and other components of an application and map directly to EAR format on disk.

  • One of the most common types of controls is the rowset control, which can be used to add data, query for data, traverse rows of data, and delete data.

samsThis chapter is from BEA WebLogic Workshop 8.1, by Albert J. Saganich, Jr., et al. (Apress, 2004, ISBN: 0-672-32622-1). Check it out at your favorite bookstore today.
Buy this book now.


DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

blog comments powered by Disqus
GRAPHIC DESIGN ARTICLES

- Customizing Wordpress Favicons and Gravatars
- Building Corner Effects with Transparent Bac...
- 3D Graphics Technology: VRML Part I - Introd...
- Creating Visual Effects
- Web Page Design Overview
- Creating Artistic Photographs
- Working with Tools in Paint Shop Pro 8
- Using HTML Quickform for Form Processing
- Introduction to Adobe FrameMaker
- WebLogic Workshop, WebLogic Platform, and th...
- Planning the Site
- Working with Web Services
- WebLogic Workshop Application Development Ba...
- Scanning Images for Web Use
- Web Graphics Overview

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials