This sample database contains a collection of live code examples that illustrate how to use the SilverStream accessor objects with EJB applications. It also contains the base classes that you must extend and the interfaces you must implement when writing your own applications that use accessor objects.
These examples reside in the Accessor37 database.
This page covers the following topics:
The SilverStream accessor objects allow you to bind data-aware controls on a form or page to server-side data provided by entity beans.
TIP You might use accessors for the following reasons:
They provide a familiar data access paradigm on page or form clients.
You can use the SilverStream AgiRowCursor (gotoNext(), gotoPrev()) and AgiRowSetManager (updateRows()) methods.
They ensure that clients do not control entity bean transactions.
You might choose not to use accessor beans because they are not portable to non-SilverStream EJB servers.
In the Accessor database, you will find examples that demonstrate:
How to use accessors to insert, update, and delete Customer records from a form and a page using the SilverStream AgiRowCursor API.
How to navigate the accessor data using the SilverStream AgiRowCursor API.
How to use accessors to gather records from the Customer and Order tables. Examples also demonstrate how to construct a hierarchical AgcView control using AgoTreeDataManager to manage the hierarchical data.
To run Accessor object examples:
After installing the Accessor database, start the Main Designer.
Select the Accessor database in the left pane of the Main Designer.
The application starts up in your browser:
Browse through the list in the left navigation pane and select examples of interest.
When you choose an example from the pages category, the example you select opens in the right pane, where you can interact with its controls:
When you choose an example from the Forms category, you see a page that allows you to launch SilverJRunner. The following shows a sample form running under SilverJRunner:
The Accessor database includes a Behind the Scenes function that provides detailed, context-sensitive descriptions of the technologies underlying the forms and pages that make up this application.
To invoke Behind the Scenes on a page, click the Behind the Scenes link on the banner:
To learn how to implement accessor objects with EJB applications, see Writing EJB Applications Using Accessors.
For introductory information about EJBs, see the following chapters in Getting Started:
For technical information about implementing EJBs, see the following chapters in the Developing Enterprise JavaBeans section of the Programmer's Guide:
For technical information about deploying EJBs, see the following chapter in the Facilities Guide of the server's Core Help:
Copyright © 2001, SilverStream Software, Inc. All rights reserved.