Since a middle tier isn't much good without something for it to talk to,
we're going to use the Pubs2 database, which is an example database provided
with Sybase SQL Server 1.1 Specifically, we'll use the authors table which is
described in Figure 1.
Imports
All of the example code is written in one file. It provides methods to do
select, insert, update and delete on the authors table. To work with Jaguar,
in addition to whatever usual imports you use, you must import a number of
packages developed by Sybase. For our example, we use what is shown in Table
1.
Methods
We'll declare a class called Pubs2CompImpl, which stands for Pubs2 component
implementation. The "Impl" on the end of the class name is sort of a Jaguar
standard for the implementation of server components - the actual component
name will be Pubs2Comp. In addition to the constructor for this class, there... (more)