Previous Next Contents Index


Creating Data Access Logic

This section describes the concepts and tasks for creating a model of your data source, establishing the specific relationships between those data, and how to use Netscape Application Builder to create queries that use a data model and JDBC RowSet calls to allow your application to access and retrieve information from a data source.

The following topics are described in this section:


About Data Models and Queries
This section provides an overview for data models and queries. For a more complete discussion of how to create and edit data models, see Creating a Data Model; for more information regarding queries, see Creating Queries.

About Data Models
A data model, indicated by the .kdm file extension, is an entity relationship (ER) diagram that specifies the data source tables and relationships used in your application (an ER diagram describes the attributes of database entities and the relationships among them). You create your data source queries by first constructing or importing a data model that includes tables and the relationships (joins) between them from a specific portion of your data source. You must define a data model before creating query files or pages that access database data.

To build a data model, you select data sources, and then add and/or remove tables, fields, and relationships. Your Netscape Application Builder queries are based on the information contained within your data model(s). Once you create a data model for a data source, you can reuse that model extensively.

About Data Access Queries
A query is a statement that specifies which data to retrieve from, insert into, delete from, or update within a data source. A data source is a collection of data electronically stored within a relational database, legacy system, or object database.

Typically, the results of a query are displayed in a report. Netscape Application Builder stores queries in files of type .gxq that can be subsequently executed by an associated servlet or JavaServer Page (JSP) file (via a JDBC method) running in Netscape Enterprise Server. For more information, see Using JDBC in Server Applications.

The Netscape Application Builder query window has two view tabs: Outline and Source. The Outline view shows each query. The Source view shows the actual SQL in the file.

The query command options (via the Insert menu) are enabled along the top portion of the Netscape Application Builder screen once you open or create a query file. Additionally, you can display the Query toolbar by choosing Toolbars - Query from the View menu.

You edit the SQL code that corresponds to a query directly, either by opening the query and choosing the source tab or double clicking on the query and choosing the SQL tab from the outline view. The following illustrations show the outline and source views for an example query:

Using Data Models and Queries
Netscape Application Builder enables you to design queries based on one or more data models that map the high-level relationships between your data to the actual data themselves. This data model represents the physical data that is stored in the data source.

A data model offers you the following benefits for your project's database query (a file of type .gxq) design:

Using Netscape Application Builder, you can create database queries by importing an existing PowerDesigner data model (a file of type .pdm) or by generating a new data model (a file of type .kdm).

The following illustration shows the various data model inputs you can use for designing a data model and the resulting output file (a file of type .kdm). Once you have created a data model, you can begin designing the database queries.

You can create one or more data models, depending on the level of organization that you require for your data source queries. For example, you might decide to have separate data models for the accounting, inventory, and sales organizations within your company rather than having one data model for your entire company data source.

Dividing data source tables into multiple data models enables query designers to view a smaller subset of the entire database each time a new query is created. By including only the relevant data source tables required for a particular department, a query designer can design queries faster, since Netscape Application Builder displays only the relevant tables and fields within that department's data model.

In addition, if your database is particularly large, yet a specific data model represents only a small subset of your data, application performance may be improved, since this multiple data model architecture enables the query designer to avoid searching through the entire database when a new query is only associated with a small subset of the database.


Creating a Data Model
To create a new data model, use Netscape Application Builder to perform the following tasks:

Selecting a Data Source
You use a data source to define the specific database tables you want to use. To select a data source, perform the following steps:

  1. Choose New - Data Model from the File menu.
  2. Click Driver to select a database driver type.
  3. Type the user ID required by the selected data source in User Name.
  4. Type the user password required by the selected data source in Password.
Adding Data Source Tables
You specify data tables for your data model to determine which portion of your data source you want to use to model your data. To use Netscape Application Builder to add data source tables, perform the following steps:

  1. Select one or more table names in Available Tables.
  2. Click >.
  3. Click >> to add all available tables to your data model.
  4. To remove a table from the data model:
    1. Select the table in Tables in Data Model.
    2. Click <. Or you can double-click on an item to remove it. Alternatively, you may also click << to remove all tables from your data model.
Netscape Application Builder displays all of your selected data source tables in the data model window.

Viewing or Editing Data Source Table Properties
You can view the properties of your data source tables to determine how to specify the interrelationships between your data model tables. In addition, if you import a data model or if you're moving from an application testing phase to a production phase, you can modify the database and user name while viewing the table properties. In the case of an imported data model, the .pdm file doesn't specify the database and user name information, so you must supply it; in the latter case, your production database is probably different from the one you use for testing and debugging your application, so this feature enables you to make the required changes without having to modify your original data model.

To view or change the data source table properties, perform the following steps:

  1. Select the table handle (the top area that includes the table name).
  2. If Netscape Application Builder displays the properties in the Properties window, go to step 3; otherwise, right-click Properties; or from the Edit menu, choose View, then choose Properties.
  3. Type a data source in Data Source.
  4. Type a database name in Database, if applicable.
  5. Type a user name in User.
Viewing a Column's Properties or Changing the Column Alias
You can view the column properties of your database tables in case you don't know whether a particular field is a number or string type. If you are creating a condition, you have to know whether to add single quotes, since string, date, time, and datetime data types must be single quoted. You may also want to know what the alias is for a specific column.

You use a column alias for a column name to rename the column title when you use a SELECT statement in a query. Netscape Application Builder uses the column alias for referencing calculated columns and joins in hierarchical queries.

To use Netscape Application Builder to view the database column properties or to change a database table's column alias, perform the following steps:

  1. Select the Columns field.
  2. Select Table Properties
  3. Type or edit the column alias in Column Alias.
Specifying Relationships Between Data Source Tables
You use Netscape Application Builder to specify the relationships between the tables in your data model.

A relationship is a named connection between data source tables. For example, you might create a relationship between the customer and order tables by using a field common to both tables such as customerID. When you run a SELECT query, the application returns a result set in which key fields, such as customer and order records with identical customerID values, are combined into a single record.

Creating Relationships
To create a relationship between tables, perform the following steps:

  1. Display the Properties window.
  2. Select the desired table field and drag it onto a field in another table.
  3. Set the desired relationship type.
    1. Click on the desired relationship line between the two table fields. Netscape Application Builder displays the SQL join information within the Properties window.
    2. Click the Relationship drop-down box within the Properties window and choose the desired relationship type.

  4. If your relationship requires more than one column to establish a unique value, repeat step 1.
Modifying or Deleting Relationships
You can use the Netscape Application Builder Properties window to modify or delete relationships.

To modify the relationship, use the Netscape Application Builder Properties window and modify the relationship as desired.

To remove a relationship, select the relationship you want to remove, and then press the Delete key, choose Delete from the Edit menu, or press the Backspace key.

Adding Calculated Fields
If you want to reuse calculations across multiple queries in your application, you can add calculated fields directly to your data model, as described in the following steps:

  1. Click the specific table to which you will add the calculated field.
  2. From the Insert menu, choose Calculated Field.
  3. Type the name of the calculated field in Column Name.
  4. Click Type to select the type of the calculated field. Netscape Application Builder provides the following data types:
  5. Data Type
    Description
    Float
    A decimal number, or number too large to fit in a long integer.
    Integer
    An integer.
    VarChar
    A series of readable characters.
    TimeStamp
    Month, day, year, hours, minutes, seconds, and nanoseconds.

  6. Type the specific calculation formula you want to assign to this field in the Calculation edit box. You can use calculation formulas similar to the following examples:
Netscape Application Builder also enables you to make the following additional changes to a calculation:

The associated procedures for editing calculations are described in the following sections.

Adding a Built-in Function to a Calculation
To add a built-in function to your calculation, you can type it in the Calculation box or click on the specific function displayed in the Add to Calculation portion of the dialog box.

The built-in functions are described in the following table:

Function Name
Description
AVG
Computes the average value of specified items.
COUNT
Computes the total number of specified items.
MAX
Computes the maximum value of the specified items.
MIN
Computes the minimum value of the specified items.
SUM
Computes the sum of all specified values.

Adding an Operator or Delimiter to a Calculation
To add an operator or delimiter to your calculation, you can type it in the Calculation edit box or click on the specific item displayed in the Add to Calculation portion of the dialog box.

The built-in operators are described in the following table:

Name
Symbol
Addition
+
Subtraction
-
Multiplication
*
Division
/
Opening Parenthetic Delimiter
(
Closing Parenthetic Delimiter
)

Including Additional Table Columns Within a Calculation
To include additional table columns within the calculation, click on the column combo box displayed just below the operators within the Add to Calculation portion of the dialog box. Netscape Application Builder adds each column name that you select to the calculation you create.


Importing a Third-Party Data Model
You can also import a Powersoft Physical Data Model (a file of type .pdm) from a third-party application. Netscape Application Builder imports and displays the .pdm file as a .kdm file in the data model window.

To import an existing data model from a third-party application, perform the following steps:

  1. From the File menu, choose Open File.
  2. Find the data model you want to open.
Netscape Application Builder displays the data model that you've selected in the data model window.


Creating Queries
Netscape Application Builder enables you to design several types of standard queries for accessing and/or modifying the data within your data source. You can select, insert, update, or delete information accessed from your data source.

You create your queries by first constructing or importing a data model that includes tables and the relationships between them from a specific portion of your data source. For a complete description of how to use Netscape Application Builder to create a data model, see Creating a Data Model.

Netscape Application Server applications can include four standard query types, as described in the following table:

Query Type
Description
SELECT query
Retrieves selected information from your data source, as specified by your data model.
INSERT query
Adds specific information to your data source.
UPDATE query
Modifies specific information within your data source.
DELETE query
Deletes specific information from your data source.

To create a new query, perform the following steps:

  1. From the File menu, choose New, then choose Query.
  2. Enter the desired information and click Next.
  3. Choose a data model to use as the basis for this query and click Next. For more information on data models, see Creating a Data Model.
  4. The New Query wizard displays the Create a New Query - Initial Query Type dialog box. Refer to the following sections that detail how to create the type of query you require.
This section includes the following topics:

Creating a SELECT Query
You use a SELECT query to retrieve information (columns) from specific tables within your data source.

To create a SELECT query, perform the following steps:

  1. Click Select in the "Create a New Query - Initial Query Type" dialog box and click Continue (or click the Insert Select Query toolbar button; or choose Insert, and then choose Select Query). Netscape Application Builder displays the following dialog box:
  2. Type a name for your query in Query Name, then click Next. Netscape Application Builder displays the Select Query Properties Fields information:
  3. Follow these steps for each table containing fields you want to display:
    1. Select a table from the Table box. The available fields for that table appear in the Fields box.
    2. Move fields into or out of the Fields to Display box by clicking the arrow icons. The double-arrow icons move all fields from one box to the other. Fields that appear in the Fields to Display box are selected for display by the query.
    3. For query fields, check the Select Distinct checkbox if you want to perform a restricted search for all fields. A SELECT DISTINCT query retrieves only the unique instances of the requested target search items (for example, if you were searching for customers from different states, and your data source contained two customers named "Jerone Garcia," both from California, the select distinct query would only return the first instance). For more information, consult the SQL reference for your data source.

  4. You can specify conditional behavior for the query by adding conditions.
    1. Click the Conditionals tab on the Select Query Properties dialog box. Netscape Application Builder displays the information displayed in the following illustration:
    2. Add a condition by clicking Add Condition.
    3. Build the condition by selecting the table and field to use, selecting a conditional operator, and entering a value to limit the field's scope.

  5. You can sort the results of your query by specifying which fields to sort and moving them into the Sorted Fields box.
    1. Click the Sorting tab on the Select Query Properties dialog box. Netscape Application Builder displays the associated data source fields:

  6. Change the sort order on a given field by clicking the Ascending (A to Z) or Descending (Z to A) button. For additional information that describes how to sort your query results, see Sorting Query ResultsFields must be joined in order to show the relationship between tables in the selection. For each set of fields to be joined, click the cell between them in the Join column and select the appropriate operator. For additional information regarding the possible join conditionals, see Adding Conditionals to a Query.
  7. Click the SQL tab to review the generated SQL (or you can edit the query directly). For information that describes how to edit your queries, see Editing Generated Code: Queries.
  8. To test the generated SQL, see Testing Queries.
  9. Click Finish. Netscape Application Builder adds the query to your project and displays it on the main window. The properties for your query are shown in the Properties window, if it is visible.
Creating an INSERT Query
You use an INSERT query to add information to your data source.

To create an INSERT query, perform the following steps:

  1. Click Insert in the "Create a new query" dialog box (or click the Insert Query toolbar button; or choose Insert, and then choose Insert Query). Netscape Application Builder displays the following dialog box:
  2. Choose a name for your query, then click Next.
  3. Follow these steps for each table containing fields you want to display:
  4. Click the SQL tab to review the generated SQL.
  5. For information that describes how to edit your queries, see Editing Generated Code: QueriesTo test the generated SQL, see Testing Queries.
  6. Click Finish.
Creating an UPDATE Query
You use an UPDATE query to update information for specific data source tables.

To create an UPDATE query, perform the following steps:

  1. Click Update in the "Create a new query" dialog box (or click the Insert Update Query toolbar button; or choose Insert, and then choose Update Query). Netscape Application Builder displays the following dialog box:
  2. Choose a name for your query, then click Next.
  3. Follow these steps for each table containing fields you want to display:
  4. You can specify conditional behavior for the query by adding conditions.
  5. Click the SQL tab to review the generated SQL. For information that describes how to edit your queries, see Editing Generated Code: Queries.
  6. To test the generated SQL, see Testing Queries.
  7. Click Finish. Netscape Application Builder adds the query to your project and displays it on the main window. The properties for your query are shown in the properties window, if it is visible.
Creating a DELETE Query
You use a DELETE query to delete information from specific tables within your data source.

To create a DELETE query, perform the following steps:

  1. Click Delete in the "Create a new query" dialog box (or click the Insert Delete Query toolbar button; or choose Insert, and then choose Delete Query). Netscape Application Builder displays the following dialog box:
  2. Choose a name for your query, then click Next.
  3. Follow these steps for each table containing fields you want to delete:
    1. Select the data source.
    2. Select a table from the Table box and click Next.

  4. You can specify conditional behavior for the query by adding conditions. For additional information regarding the possible join conditionals, see Adding Conditionals to a Query.
    1. Add a condition by clicking Add Condition.
    2. Build the condition by selecting the table and field, selecting a conditional operator, and entering a value to delimit the field's scope.

  5. Click the SQL tab to review the generated SQL. For information that describes how to edit your queries, see Editing Generated Code: Queries.
  6. To test the generated SQL, see Testing Queries.
  7. Click Finish. Netscape Application Builder adds the query to your project and displays it on the main window. The properties for your query are shown in the properties window, if it is visible.
Testing Queries
Once you've created your queries, you can use Netscape Application Builder to test them.

For more information about how to test queries, see "Testing Queries".


Editing Generated Code: Queries
You can edit the SQL code that you create (or that Netscape Application Builder automatically creates) via the SQL tab on the query properties dialog box.

Editing Queries via the SQL Tab
You can edit the SQL code that makes up your query by selecting the SQL tab in the Query Properties dialog box. This tab displays the query file or SQL that Netscape Application Builder is generating in response to your selections in the other query creation dialog tabs.

To edit a specific query using the Query Properties SQL tab, perform the following steps:

  1. From the File menu, choose Open to open the desired query file or double-click the query file in the project map window or within the Project window.
  2. Right-click the specific query you want to edit within the Outline tab and select the Goto option. Netscape Application Builder displays the Source tab.
  3. Edit the generated SQL.
To preview your query SQL code, perform the following steps:

  1. From the File menu, choose Open to open the desired query file or double-click the query file in the project map window or within the Project window.
  2. Click the Query Properties SQL tab.
Note. Editing Query Descriptions
You can edit query descriptions that appear in the Properties window. To edit a specific query description, perform the following steps:

  1. From the File menu, choose Open to open the desired query file or double-click the query file in the project map window or within the Project window.
  2. Click the specific query you want to edit within the left portion of the query window.
  3. Make the desired changes within the properties window.
Note. The displayed information will be read-only if custom SQL is present.


Adding Conditionals to a Query
You can specify conditions that are used to match rows in the data source to help focus your query to obtain more precise search results. For example, rather than retrieving information about all customers, you can use a condition to retrieve only information about customers in a certain city.

The Conditionals tab of the Query Properties dialog box allows you to set up the WHERE clause of a SQL query.

The WHERE clause of a SQL query can take multiple forms:

Note. A boolean clause can consist of any combination of simple conditions and other boolean clauses linked together by a logical Boolean operator. For example: WHERE lastName='Garcia' OR city='half moon bay' OR (firstName='Jerone' AND homePhone='999-999-9876'). Note that parentheses are used in a condition statement to force Netscape Application Builder to interpret specific conditions first. In this example, the AND condition must be interpreted prior to the preceding OR conditions.

Choosing Between Simple and Boolean Conditional Operators
The Conditionals tab displays both simple conditions and boolean clauses in a tree format. The parent nodes within this tree represent boolean operators which form boolean clauses by linking together the child nodes representing simple conditions and the child subtrees representing boolean clauses.

Simple Conditional Operators
Netscape Application Builder includes a complete set of simple conditional operators, as described in the following table:

Name
Symbol
Description
Equals
=
Specified field and value is equivalent
Not equals
<>
Specified field and value is not equivalent
Less than
<
Specified field is less than value
Less than or equal to
<=
Specified field is less than or equal to value
Greater than
>
Specified field is greater than value
Greater than or equal to
>=
Specified field is greater than or equal to value
Is between
IS BETWEEN
Specified field value is between value
In
IN
Specified field is part of the value set
Not in
NOT IN
Specified field is not part of value set
Is null
IS NULL
Specified field is null
Is not null
IS NOT NULL
Specified field is not null
Is like
IS LIKE
Specified field is similar to value

Netscape Application Builder displays these simple conditional operators within the Conditions Property dialog box, as seen when you add a condition to a query.

Boolean Conditional Operators
Netscape Application Builder provides two boolean conditional operators within the Conditions Property dialog box: AND and OR.

The AND boolean operator returns TRUE if and only if both operands are TRUE.

The OR boolean operator returns TRUE if one or both operands are TRUE.

Adding a Conditional Operator to a Query
To add a conditional operator to a query, perform the following steps:

  1. From the File menu, choose Open to open the desired query file or double-click the query file in the project map window or within the Project window.
  2. Click the Query Properties Conditionals tab.
  3. Click Add And or Add Or to add an AND or OR operator.
  4. Click Add Condition to add a condition to the AND or OR operator.
  5. Select the specific table, fields, and operators.
  6. Click in the text field in Values.
  7. Type the required values in the text boxes. Note that Netscape Application Builder displays the default query parameter.
Using Query Parameters
The Query Properties Conditionals tab allows you to instruct a query to accept input from the calling servlet.

This function is achieved by entering :<variable> (such as a valIn, session variable, or constant) as you work with the Query Properties Conditional tab.

When you create a Data Access servlet and add a query, you are prompted for query parameters. You can pass in a valIn variable or a session variable, or you can enter a constant for the query parameter. For a complete description of servlets, see "".


Adding Joins to a Query
You can specify joins that define how queries relate to each other. A join sets the relationship between two tables or two queries.

Netscape Application Builder provides the following types of join operators:

Name
Symbol
Description
Simple join
=
Returns rows from two tables based on an equality condition.
Left join
(+) =
Returns rows from two tables based on the equality condition plus those unique rows from the left table.
Right join
= (+)
Returns rows from two tables based on the equality condition plus those unique rows from the right table.
Outer join
(+) = (+)
If supported by the DBMS, extends the result of a simple join by returning the rows returned by a simple join as well as those rows from one table that do not match any row from any other table.
No join
No join
Specifies that no joins are used in the table.

Note. Joins can be made only if relationships have been defined in the associated data model. For a complete description of how to define relationships within a data model, see Specifying Relationships Between Data Source Tables.

To add a join to a query, perform the following steps:

  1. From the File menu, choose Open to open the desired query file, or double-click the query file in the project map window or within the Project window. The Select Query Properties window appears.
  2. Click the Joins tab on the Query Properties dialog box.
  3. For each column, click the Join field to select the desired join operator.
  4. Click Next to continue editing the selected query, or click Finish if you have finished editing the query.

Sorting Query Results
You can change the order of the rows retrieved by a query. Normally, when you work with retrieved data, you want it to be organized in a particular sequence. This sequence is determined by a sort key, which is a group of one or more column names.

If no field names appear in this tab, go back and fill out the appropriate Tables and Fields tabs. Those tabs must be completed before you can use the Sorting tab.

To sort query results, perform the following steps:

  1. From the File menu, choose Open to open the desired query file, or double-click the query file in the project map window or within the Project window.
  2. Click the Sorting tab on the Query Properties dialog box.
  3. In Fields, select one or more field names that you want to use as a sort key.
  4. Click >.
  5. To change the sort order on a particular column:
    1. Select the field name in Sorted Fields.
    2. Click Sort (A-Z) or Sort (Z-A), for ascending or descending order.

  6. To remove a field from the sort key:
    1. Select the field name in Sorted Fields.
    2. Click <.

Creating and Editing JDBC RowSet Objects
A row set is an object that encapsulates a set of rows retrieved from a database or other tabular data store, such as a spreadsheet. To implement a row set, your code must import javax.sql, and implement the RowSet interface. RowSet extends the java.sql.ResultSet interface, permitting it to act as a JavaBeans component.

For more information about the RowSet interface, see Working with Rowsets.

Netscape Application Builder implements result sets using the row set interface. It provides you flexibility for creating, inspecting, and editing your row set objects. The Properties window allows you to change various "simple" properties of the project servlet and/or AppResource files. In addition, you can create, edit, access, subclass, and add data to your RowSets programmatically.

This section describes the following topics:

Setting Data Connections
You must specify a data connection when you run the database and wizards. The wizard prompts you for the following information:

Property
Description
Driver
The database driver with which to connect to the data source. Choose from one of the following drivers:
Data sources
The database or data source name.
User name
The user name with which to log into the database.
Password
The password associated with the user name.

The connection information is stored in a properties file whose name consists of the data source name and the suffix .props. For example, the properties file for the cdx database is cdx.props. You can locate the properties file in your project's Connections folder.

This file is a text file, which contains one line for each property. A line consists of the property's key followed by an equal ( = ) sign and the property's value. To edit the file, you can double click on the file name in the Connections folder, which opens it in an editor window.

You can make changes to property values. A sample connection property file follows:

Manipulating Result Sets
You can create or modify output result sets used by a servlet. You can access a result set by selecting the output result set in the properties window associated with a servlet. The result set may appear differently in the Properties window depending on whether the servlet appears in the Java Text Editor view or the Outline view of the editor window; however, it is the same result set. The procedures that follow assume you are using the Java Text Editor view.

Specifying or Creating a Result Set
To use a custom property editor to create the result set property, click the custom property editor button in the property definition. The custom property editor, shown below, appears:

Choose an existing result set, or choose one of the other available objects. If the result set you need does not appear in the list, you can add one by clicking Add. The following dialog box appears:

Choose the type of result set you want to create:

Creating a Result Set Using an Existing Query
To create a DBRowSet using an existing query file, you must provide the names of the file and query and then designate the bindings for the individual query parameters. Follow these steps to do this:

  1. Choose DBRowSet in the result set class dialog box.
  2. Click Next. Enter a name for the new result set.
  3. Click Next. Choose "Use an existing query file" and select a query file from the drop-down list.
  4. Click Next. Specify a connection to a data source. If an appropriate connection already exists, select it from the drop-down list. Otherwise, select "Create a new connection" and click Next. You are prompted for a database driver and related data source, along with a user name and password to connect to the data source.
  5. Click Next. Move one or more queries from the Available Queries column to the Queries to Use column with the arrow buttons.
  6. Click Next. The following dialog box appears if you are editing an existing result set, but not if you creating a new one:
  7. Click Finish to create the DBRowSet.
Creating a Result Set Using a New Query
To create a result set using a new query, perform the following steps:

  1. Choose DBRowSet in the result set Class dialog box.
  2. Click Next. Enter a name for the new result set.
  3. Click Next. Choose "Use a data model" to create a new query.
  4. Click Next. Specify the data model on which to base the new query. If you need to create a new data model, click Create a New Data Model. The property editor exits; you must run it again after your data model has been created.
  5. Click Next. Specify a connection to a data source. If an appropriate connection already exists, select it from the drop-down list. Otherwise, choose "Create a new connection" and click Next. You are prompted for a database driver and related data source, along with a user name and password to connect to the data source.
  6. Click Next to select fields to display. First select the table to which the field belongs, then move the field from the Fields column to the Fields to Display column using the arrow buttons.
  7. Click Next to select one or more fields on which to sort the incoming data. Fields are shown in sort order from top to bottom; you can rearrange their order using the up and down buttons on the right. You can adjust whether each field is sorted in ascending or descending order by clicking the A-Z (ascending) or Z-A (descending) button.
  8. Click Finish to create the DBRowSet.
Creating a User-Defined Result Set
If you need to create your own result set, you can create an in-memory result set and specify the columns you want your result set to have.

 

© Copyright 1999 Netscape Communications Corp.